Browse Source

align stack

greatbridf 4 years ago
parent
commit
bc404e29af
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/boot.s

+ 5 - 2
src/boot.s

@@ -113,8 +113,11 @@ start_32bit:
     movw %ax, %ss
 
 # set up stack
-    movl $0x003fffff, %ebp
-    movl $0x003fffff, %esp
+# in order to align 16 byte
+# set stack base address at
+# 0x003ffff0
+    movl $0x003ffff0, %ebp
+    movl $0x003ffff0, %esp
 
     call kernel_main