2023-06-15 16:20:29 -07:00
|
|
|
#include <denali/denali.h>
|
|
|
|
#include <mammoth/channel.h>
|
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-06-07 22:45:42 -07:00
|
|
|
#include "hw/pcie.h"
|
|
|
|
|
2023-06-07 11:18:35 -07:00
|
|
|
uint64_t main() {
|
|
|
|
dbgln("Yellowstone Initializing.");
|
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-15 16:20:29 -07:00
|
|
|
|
|
|
|
Channel local;
|
|
|
|
check(SpawnProcessFromElfRegion(vaddr, local));
|
|
|
|
local.WriteStr("Hello!");
|
2023-06-07 11:18:35 -07:00
|
|
|
|
2023-06-07 22:45:42 -07:00
|
|
|
DumpPciEDevices();
|
|
|
|
|
2023-06-07 11:18:35 -07:00
|
|
|
dbgln("Yellowstone Finished Successfully.");
|
2023-05-29 00:32:54 -07:00
|
|
|
return 0;
|
|
|
|
}
|