Procházet zdrojové kódy

Kernel: Uh, actually *actually* turn on CR4.PGE

I'm not sure how I managed to misread the location of this bit twice.
But I did! Here is finally the correct value, according to Intel:

    "Page Global Enable (bit 7 of CR4)"

Jeez! :^)
Andreas Kling před 5 roky
rodič
revize
c9a5253ac2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Kernel/VM/MemoryManager.cpp

+ 1 - 1
Kernel/VM/MemoryManager.cpp

@@ -168,7 +168,7 @@ void MemoryManager::initialize_paging()
     // Turn on CR4.PGE so the CPU will respect the G bit in page tables.
     asm volatile(
         "mov %cr4, %eax\n"
-        "orl $0x40, %eax\n"
+        "orl $0x80, %eax\n"
         "mov %eax, %cr4\n");
 
     asm volatile("movl %%eax, %%cr3" ::"a"(kernel_page_directory().cr3()));