acadia/zion/include/zcall.h
Drew Galbraith 69b5cd001f Add a skeleton framework for capabilities.
Use the first capability to spawn a child process.
2023-05-30 23:55:42 -07:00

20 lines
378 B
C

#pragma once
#include <stdint.h>
#define Z_THREAD_EXIT 0x01
#define Z_PROCESS_SPAWN 0x10
#define Z_DEBUG_PRINT 0x100
uint64_t ZDebug(const char* message);
// TODO: Move structs into an internal header.
struct ZProcessSpawnReq {
uint64_t cap_id;
uint64_t elf_base;
uint64_t elf_size;
};
uint64_t ZProcessSpawn(uint64_t cap_id, uint64_t elf_base, uint64_t elf_size);