mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
4a59210008
This change improves the way internal APIs are being hidden behind the `COSMO` define. The cosmo.h header will take care of defining that, so that a separate define statement isn't needed. This change also does a lot more to define which APIs are standard, and which belong to Cosmo.
20 lines
461 B
C
20 lines
461 B
C
#ifndef COSMOPOLITAN_APE_LOADER_H_
|
|
#define COSMOPOLITAN_APE_LOADER_H_
|
|
|
|
#define APE_LOADER_BASE 0x200000
|
|
#define APE_LOADER_SIZE 0x200000
|
|
#define APE_LOADER_ENTRY 0x200400
|
|
#define APE_LOADER_BSS (4096 * 2)
|
|
#define APE_LOADER_STACK 0x7f0000000000
|
|
#define APE_BLOCK_BASE 0x7e0000000000
|
|
#define APE_BLOCK_SIZE 0x000200000000
|
|
|
|
struct ApeLoader {
|
|
int fd;
|
|
int os;
|
|
char *prog;
|
|
char *page;
|
|
void *systemcall;
|
|
};
|
|
|
|
#endif /* COSMOPOLITAN_APE_LOADER_H_ */
|