mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Make progress towards aarch64 build
This commit is contained in:
parent
08ff26c817
commit
ca2860947f
15428 changed files with 25694 additions and 23138 deletions
|
@ -98,6 +98,7 @@ extern char ape_stack_align[] __attribute__((__weak__));
|
|||
#define GetStackAddr() \
|
||||
(((intptr_t)__builtin_frame_address(0) - 1) & -GetStackSize())
|
||||
|
||||
#ifdef __x86_64__
|
||||
/**
|
||||
* Returns preferred bottom address of stack.
|
||||
*
|
||||
|
@ -116,6 +117,9 @@ extern char ape_stack_align[] __attribute__((__weak__));
|
|||
: "i"(ADDEND)); \
|
||||
vAddr; \
|
||||
})
|
||||
#else
|
||||
#define GetStaticStackAddr(ADDEND) (GetStackAddr() + ADDEND)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns true if at least `n` bytes of stack are available.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue