2023-06-07 00:04:53 -07:00
|
|
|
#include <mammoth/debug.h>
|
|
|
|
#include <mammoth/process.h>
|
2023-06-07 00:19:15 -07:00
|
|
|
#include <zcall.h>
|
2023-05-30 20:55:03 -07:00
|
|
|
|
2023-05-29 00:32:54 -07:00
|
|
|
int main() {
|
2023-06-07 00:04:53 -07:00
|
|
|
dbgln("Testing");
|
2023-06-07 00:19:15 -07:00
|
|
|
uint64_t vaddr;
|
2023-06-07 00:30:26 -07:00
|
|
|
check(ZAddressSpaceMap(Z_INIT_VMAS_SELF, 0, Z_INIT_BOOT_VMMO, &vaddr));
|
2023-06-07 00:19:15 -07:00
|
|
|
check(SpawnProcessFromElfRegion(vaddr));
|
2023-06-07 00:04:53 -07:00
|
|
|
dbgln("Return");
|
2023-05-29 00:32:54 -07:00
|
|
|
return 0;
|
|
|
|
}
|