grow on demand heap
[lunaix-os.git] / lunaix-os / arch / x86 / boot.S
index bc1eec2758345b99b985c6a86f138480a72d9dbc..7bf30055a54e13689b11269908a9de937a62346e 100644 (file)
@@ -41,6 +41,9 @@
                                  * linker more knowledge about the label 
                                  */
     start_: 
+        cld
+        # 确保屏蔽所有外中断,直到我们准备好PIC为止
+        cli
         movl $stack_top, %esp
 
         subl $16, %esp
@@ -57,9 +60,7 @@
 
         /*
             _hhk_init用来初始化我们高半核:
-                    1. 设置GDT表
-                    2. 设置IDT表(暂时,以后会拿到 kernel_init 里面)
-                    3. 初始化最简单的PTD与PT(重新映射我们的内核至3GiB处,以及对相应的地方进行Identity Map)
+                1. 初始化最简单的PD与PT(重新映射我们的内核至3GiB处,以及对相应的地方进行Identity Map)
         */
 
         movl $(KPG_SIZE), 4(%esp)