Add a process spawn syscall and use it to start a proc.

Also add a skeleton VirtualMemory manager to be used per process.
This commit is contained in:
Drew Galbraith 2023-05-30 20:55:03 -07:00
parent 5bcf1f4e4a
commit 3c3341a90f
7 changed files with 125 additions and 6 deletions

View file

@ -3,6 +3,17 @@
#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 elf_base;
uint64_t elf_size;
};
uint64_t ZProcessSpawn(uint64_t elf_base, uint64_t elf_size);