Start the call stack with a null RBP before calling _start
This commit is contained in:
parent
4921db7b97
commit
aad9aa1db5
@ -1,4 +1,4 @@
|
||||
ENTRY(_start)
|
||||
ENTRY(_main)
|
||||
OUTPUT_FORMAT(elf64-x86-64)
|
||||
|
||||
mmio = 0xfffffffff8000000; /* these are configurable for level 2 loaders */
|
||||
|
6
kernel/src/main.asm
Normal file
6
kernel/src/main.asm
Normal file
@ -0,0 +1,6 @@
|
||||
global _main
|
||||
extern _start
|
||||
|
||||
_main:
|
||||
xor rbp, rbp
|
||||
call _start
|
Loading…
Reference in New Issue
Block a user