mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
userspace/libc: fix stack alignment
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
69bc044b09
commit
e8b61e6d7f
@ -40,9 +40,8 @@ void __crt_fini_array(void)
|
||||
__attribute__((naked, used, no_stack_protector, section(".text"))) void _start()
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
asm("movq $0, %rbp\n"
|
||||
"pushq %rbp\n"
|
||||
"pushq %rbp\n"
|
||||
asm("xor %rbp, %rbp\n"
|
||||
"andq $-16, %rsp\n"
|
||||
"movq %rsp, %rbp\n"
|
||||
|
||||
"pushq %rcx\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user