Use our own stack space, not efi's.

This commit is contained in:
Justin C. Miller
2018-04-23 10:22:43 -07:00
parent ef24894211
commit ff1aac64c1

View File

@@ -19,6 +19,7 @@ global _start:function (_start.end - _start)
_start:
cli
mov rsp, stack_end
extern kernel_main
call kernel_main
@@ -38,3 +39,8 @@ global interrupts_disable
interrupts_disable:
cli
ret
section .bss
stack_begin:
resb 0x4000 ; 16KiB stack space
stack_end: