Move sys/test to Yellowstone init process.

This commit is contained in:
Drew Galbraith 2023-06-07 11:18:35 -07:00
parent 6f81520918
commit 7c9d1075eb
8 changed files with 26 additions and 19 deletions

View file

@ -0,0 +1,13 @@
#include <mammoth/debug.h>
#include <mammoth/process.h>
#include <zcall.h>
uint64_t main() {
dbgln("Yellowstone Initializing.");
uint64_t vaddr;
check(ZAddressSpaceMap(Z_INIT_VMAS_SELF, 0, Z_INIT_BOOT_VMMO, &vaddr));
check(SpawnProcessFromElfRegion(vaddr));
dbgln("Yellowstone Finished Successfully.");
return 0;
}