x86_64: move stack pointer to higher-half in start_64

This commit is contained in:
2023-02-06 20:45:31 +00:00
parent 5c7bde4fdf
commit fe0b7e043f

View File

@@ -7,6 +7,9 @@
.global start_64 .global start_64
.type start_64, @function .type start_64, @function
start_64: start_64:
/* convert %rsp to a higher-half pointer */
add $0xFFFFFFFF80000000, %rsp
pop %rdi pop %rdi
call kernel_init call kernel_init