refactor: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git] / lunaix-os / arch / x86 / boot.S
index 938db876514333b8a8f0dec1b1d598590b51f80d..9e44437c7803d24b40323c6d69f3a67b455b5f37 100644 (file)
@@ -18,8 +18,8 @@
     /* 根据System V ABI,栈地址必须16字节对齐 */
     /* 这里只是一个临时栈,在_hhk_init里面我们会初始化内核专用栈 */
     stack_bottom:
-        .skip 16318 * 2, 0
-    stack_top:
+        .skip 4096, 0
+    __stack_top:
 
 
 /* 
@@ -44,7 +44,7 @@
         cld
         # 确保屏蔽所有外中断,直到我们准备好PIC为止
         cli
-        movl $stack_top, %esp
+        movl $__stack_top, %esp
 
         subl $16, %esp