mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Get llama.com working on aarch64
This commit is contained in:
parent
4c093155a3
commit
a0237a017c
19 changed files with 321 additions and 157 deletions
|
@ -57,8 +57,10 @@ void __set_tls(struct CosmoTib *);
|
|||
asm("mov\t%%fs:0,%0" : "=r"(_t) : /* no inputs */ : "memory"); \
|
||||
_t; \
|
||||
})
|
||||
#else
|
||||
#define __get_tls() ((struct CosmoTib *)__builtin_thread_pointer())
|
||||
#define __adj_tls(tib) (tib)
|
||||
#elif defined(__aarch64__)
|
||||
#define __get_tls() ((struct CosmoTib *)__builtin_thread_pointer() - 1)
|
||||
#define __adj_tls(tib) ((struct CosmoTib *)(tib) + 1)
|
||||
#endif
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue