Working kernel written on C and userspace-ready #1
@@ -21,10 +21,9 @@ void KernelMain(Bootinfo* bootinfo) {
|
||||
|
||||
bootMap.reservedCount = 0;
|
||||
DTBParse(bootinfo->dtb, &bootMap);
|
||||
SerialUpdate(bootMap.UART.base);
|
||||
|
||||
PMMInitialize(&bootMap);
|
||||
VMMInitialize(&bootMap, bootinfo);
|
||||
SerialUpdate(VMPhysToHHDM(bootMap.UART.base));
|
||||
HeapInitialize();
|
||||
|
||||
GICInitialize(
|
||||
@@ -34,6 +33,7 @@ void KernelMain(Bootinfo* bootinfo) {
|
||||
TimerInitialize();
|
||||
CPUEnableInterrupts();
|
||||
SchedulerInitialize();
|
||||
SchedulerYield(0);
|
||||
|
||||
OSLog("Kernel initialized.\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user