Start the call stack with a null RBP before calling _start

This commit is contained in:
apio 2022-09-18 17:03:29 +02:00
parent 4921db7b97
commit aad9aa1db5
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
ENTRY(_start) ENTRY(_main)
OUTPUT_FORMAT(elf64-x86-64) OUTPUT_FORMAT(elf64-x86-64)
mmio = 0xfffffffff8000000; /* these are configurable for level 2 loaders */ mmio = 0xfffffffff8000000; /* these are configurable for level 2 loaders */

6
kernel/src/main.asm Normal file
View File

@ -0,0 +1,6 @@
global _main
extern _start
_main:
xor rbp, rbp
call _start