Add a skeleton framework for capabilities.

Use the first capability to spawn a child process.
This commit is contained in:
Drew Galbraith 2023-05-30 23:55:42 -07:00
parent 09b8136ef9
commit 69b5cd001f
9 changed files with 97 additions and 4 deletions

View file

@ -12,8 +12,9 @@ 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 elf_base, uint64_t elf_size);
uint64_t ZProcessSpawn(uint64_t cap_id, uint64_t elf_base, uint64_t elf_size);