Add a skeleton framework for capabilities.
Use the first capability to spawn a child process.
This commit is contained in:
parent
09b8136ef9
commit
69b5cd001f
9 changed files with 97 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue