mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Introduce native support for MacOS ARM64
There's a new program named ape/ape-m1.c which will be used to build an embeddable binary that can load ape and elf executables. The support is mostly working so far, but still chasing down ABI issues.
This commit is contained in:
parent
b852650c08
commit
1422e96b4e
757 changed files with 2988 additions and 1321 deletions
|
@ -39,9 +39,16 @@ struct CosmoTib {
|
|||
};
|
||||
|
||||
extern int __threaded;
|
||||
extern bool __tls_enabled;
|
||||
extern unsigned __tls_index;
|
||||
|
||||
#ifdef __x86_64__
|
||||
extern bool __tls_enabled;
|
||||
#define __tls_enabled_set(x) __tls_enabled = x
|
||||
#else
|
||||
#define __tls_enabled true
|
||||
#define __tls_enabled_set(x) (void)0
|
||||
#endif
|
||||
|
||||
void __require_tls(void);
|
||||
void __set_tls(struct CosmoTib *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue