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