First iteration of denali server

This commit is contained in:
Drew Galbraith 2023-06-15 16:20:29 -07:00
parent 82b1a5c4db
commit ffa2d97a64
18 changed files with 273 additions and 39 deletions

View file

@ -1,3 +1,5 @@
#include <denali/denali.h>
#include <mammoth/channel.h>
#include <mammoth/debug.h>
#include <mammoth/process.h>
#include <zcall.h>
@ -8,7 +10,10 @@ uint64_t main() {
dbgln("Yellowstone Initializing.");
uint64_t vaddr;
check(ZAddressSpaceMap(Z_INIT_VMAS_SELF, 0, Z_INIT_BOOT_VMMO, &vaddr));
check(SpawnProcessFromElfRegion(vaddr));
Channel local;
check(SpawnProcessFromElfRegion(vaddr, local));
local.WriteStr("Hello!");
DumpPciEDevices();