From 59e22cef16fa708759d87689507e0222c0fdd612 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 30 Jun 2026 16:56:55 -0400 Subject: [PATCH] bootloader: Restore activation of CR0 PAGING bit in init_page_directory. Otherwise it may not be activated until much later. May fix #20155. --- src/system/boot/platform/bios_ia32/mmu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/boot/platform/bios_ia32/mmu.cpp b/src/system/boot/platform/bios_ia32/mmu.cpp index 744334c36c..e339affe94 100644 --- a/src/system/boot/platform/bios_ia32/mmu.cpp +++ b/src/system/boot/platform/bios_ia32/mmu.cpp @@ -372,6 +372,7 @@ init_page_directory(void) // switch to the new pgdir and enable paging asm("movl %0, %%eax;" "movl %%eax, %%cr3;" : : "m" (sPageDirectory) : "eax"); + x86_write_cr0(x86_read_cr0() | CR0_PAGING); }