Updated magenta crt stack alignment
This commit is contained in:
@@ -8,8 +8,9 @@
|
|||||||
.type main, @function
|
.type main, @function
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
mov %rsp, %rsi
|
# Magenta aligns the stack to a page boundry and subtracts 8.
|
||||||
andq $-16, %rsp
|
# Add 8 to restore 16-byte alignment
|
||||||
|
add $8, %rsp
|
||||||
call __crt_init
|
call __crt_init
|
||||||
|
|
||||||
# unreachable; __crt_init() will call mx_task_kill()
|
# unreachable; __crt_init() will call mx_task_kill()
|
||||||
|
|||||||
Reference in New Issue
Block a user