Files

18 lines
264 B
ArmAsm
Raw Permalink Normal View History

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