Files
mango/arch/x86_64/start_64.S

18 lines
264 B
ArmAsm
Raw Normal View History

.code64
.extern kernel_init # defined in core/main.c
2023-02-06 10:39:36 +00:00
.section .boot.text, "ax", @progbits
.global start_64
.type start_64, @function
start_64:
/* convert %rsp to a higher-half pointer */
add $0xFFFFFFFF80000000, %rsp
pop %rdi
call kernel_init
cli
hlt