Allocate explicit stack on aarch64

This commit is contained in:
Justine Tunney 2023-08-15 04:40:19 -07:00
parent 0e586c834a
commit de3f3a9e5a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
10 changed files with 144 additions and 74 deletions

View file

@ -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