Add a threading syscall API.

This commit is contained in:
Drew Galbraith 2023-06-06 16:24:03 -07:00
parent e2aad55a8a
commit ef8eb5d993
14 changed files with 235 additions and 30 deletions

View file

@ -6,7 +6,7 @@ constexpr uint64_t prog2 = 0x00000020'00000000;
int main() {
ZDebug("Testing");
uint64_t err = ZProcessSpawnElf(0x100, prog2, 0x1000);
uint64_t err = ZProcessSpawnElf(Z_INIT_PROC_SELF, prog2, 0x2000);
if (err != Z_OK) {
ZDebug("Error");
} else {