mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Allocate explicit stack on aarch64
This commit is contained in:
parent
0e586c834a
commit
de3f3a9e5a
10 changed files with 144 additions and 74 deletions
|
@ -126,17 +126,6 @@ _start:
|
|||
// this is the first argument to cosmo() below
|
||||
mov x0,sp
|
||||
|
||||
// align stack to GetStackSize() so GetStackAddr() is fast
|
||||
mov x1,sp
|
||||
.weak ape_stack_memsz
|
||||
ldr x2,=ape_stack_memsz
|
||||
neg x2,x2
|
||||
and x1,x2,x1
|
||||
mov sp,x1
|
||||
|
||||
// setup backtraces
|
||||
mov x29,#0
|
||||
|
||||
// second arg shall be struct Syslib passed by ape-m1.c
|
||||
// used to talk to apple's authoritarian libraries
|
||||
// should be set to zero on other platforms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue