소스 검색

align stack

greatbridf 4 년 전
부모
커밋
bc404e29af
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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