2023-05-29 00:32:54 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-05-29 13:51:00 -07:00
|
|
|
#define Z_THREAD_EXIT 0x01
|
2023-05-30 20:55:03 -07:00
|
|
|
|
|
|
|
#define Z_PROCESS_SPAWN 0x10
|
|
|
|
|
2023-05-29 13:51:00 -07:00
|
|
|
#define Z_DEBUG_PRINT 0x100
|
2023-05-29 00:32:54 -07:00
|
|
|
|
2023-05-29 13:51:00 -07:00
|
|
|
uint64_t ZDebug(const char* message);
|
2023-05-30 20:55:03 -07:00
|
|
|
|
|
|
|
// TODO: Move structs into an internal header.
|
|
|
|
struct ZProcessSpawnReq {
|
|
|
|
uint64_t elf_base;
|
|
|
|
uint64_t elf_size;
|
|
|
|
};
|
|
|
|
|
|
|
|
uint64_t ZProcessSpawn(uint64_t elf_base, uint64_t elf_size);
|