From c428097ec6edf730df12e9f85eb260e6c0282390 Mon Sep 17 00:00:00 2001 From: karina Date: Sun, 3 May 2026 12:26:46 +0400 Subject: [PATCH] fix(serial): VMPhysToHHDM --- Kernel/Source/KernelMain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Source/KernelMain.c b/Kernel/Source/KernelMain.c index ae6a2d7..14eac88 100644 --- a/Kernel/Source/KernelMain.c +++ b/Kernel/Source/KernelMain.c @@ -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"); }