acadia/sys/test.cpp
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

16 lines
272 B
C++

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