2022-05-21 14:52:58 +00:00
|
|
|
#ifndef COSMOPOLITAN_APE_LOADER_H_
|
|
|
|
#define COSMOPOLITAN_APE_LOADER_H_
|
|
|
|
|
2022-05-22 11:51:02 +00:00
|
|
|
#define APE_LOADER_BASE 0x200000
|
|
|
|
#define APE_LOADER_SIZE 0x200000
|
|
|
|
#define APE_LOADER_ENTRY 0x200400
|
2023-06-10 01:02:06 +00:00
|
|
|
#define APE_LOADER_BSS (4096 * 2)
|
2022-05-22 11:51:02 +00:00
|
|
|
#define APE_LOADER_STACK 0x7f0000000000
|
|
|
|
#define APE_BLOCK_BASE 0x7e0000000000
|
|
|
|
#define APE_BLOCK_SIZE 0x000200000000
|
2022-05-21 14:52:58 +00:00
|
|
|
|
|
|
|
struct ApeLoader {
|
|
|
|
int fd;
|
|
|
|
int os;
|
|
|
|
char *prog;
|
|
|
|
char *page;
|
2022-09-10 02:12:40 +00:00
|
|
|
void *systemcall;
|
2022-05-21 14:52:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* COSMOPOLITAN_APE_LOADER_H_ */
|