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

@ -1,11 +1,16 @@
#include "zcall.h"
#include "zerrors.h"
constexpr uint64_t prog2 = 0x00000020'00000000;
int main() {
ZDebug("Testing");
ZProcessSpawn(prog2, 0x1000);
ZDebug("Return");
uint64_t err = ZProcessSpawn(0x100, prog2, 0x1000);
if (err != Z_OK) {
ZDebug("Error");
} else {
ZDebug("Return");
}
return 0;
}