]> Zhao Yanbai Git Server - kernel.git/commitdiff
修复root_task的栈,空出ss, esp, eflags
authoracevest <zhaoyanbai@126.com>
Sun, 14 Nov 2021 14:01:23 +0000 (22:01 +0800)
committeracevest <zhaoyanbai@126.com>
Sun, 14 Nov 2021 14:01:23 +0000 (22:01 +0800)
boot/multiboot.S

index 4526b67af8eff37c3b5ddf8aeb9855dc78e6a37a..09747695f7e8a16394601ceaf2580140bad0110a 100644 (file)
@@ -134,6 +134,7 @@ Label:
 
     call    setup_kernel
 
+    subl    $12, %esp   // ss esp eip
     movl    $root_task_entry, %eax
     jmpl    *%eax