acadia/zion/zion.cpp
Drew Galbraith 2d719d0443 Add a bootstrap physical memory manager.
This will allow the real physical memory manager to use allocations.
2023-05-18 11:00:05 -07:00

22 lines
439 B
C++

#include <stdint.h>
#include "common/gdt.h"
#include "debug/debug.h"
#include "interrupt/interrupt.h"
#include "memory/kernel_heap.h"
#include "memory/paging_util.h"
#include "memory/physical_memory.h"
extern "C" void zion() {
InitGdt();
InitIdt();
InitPaging();
phys_mem::InitBootstrapPageAllocation();
KernelHeap heap(0xFFFFFFFF'40000000, 0xFFFFFFFF'80000000);
heap.Allocate(1);
dbgln("Sleeping!");
while (1)
;
}