From cd2426989ffc42af98ca17aec6a95ce1ae5ce7e8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 16 Oct 2016 16:18:01 -0600 Subject: [PATCH] Mark kernel memory global --- x86_64/initialize.asm | 2 +- x86_64/startup-x86_64.asm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x86_64/initialize.asm b/x86_64/initialize.asm index 1d468a17ff..e723d372e7 100644 --- a/x86_64/initialize.asm +++ b/x86_64/initialize.asm @@ -38,7 +38,7 @@ initialize: .pit: ;initialize the PIT - mov ax, 55483 ;5370 ;this is the divider for the PIT + mov ax, 2685 ;this is the divider for the PIT out 0x40, al rol ax, 8 out 0x40, al diff --git a/x86_64/startup-x86_64.asm b/x86_64/startup-x86_64.asm index abe600f955..d49c532ce7 100644 --- a/x86_64/startup-x86_64.asm +++ b/x86_64/startup-x86_64.asm @@ -26,9 +26,9 @@ startup_ap: mov edi, 0x70000 mov cr3, edi - ;enable Page Address Extension and Page Size Extension + ;enable Page Global, Page Address Extension, and Page Size Extension mov eax, cr4 - or eax, 1 << 5 | 1 << 4 + or eax, 1 << 7 | 1 << 5 | 1 << 4 mov cr4, eax ; load protected mode GDT @@ -91,9 +91,9 @@ startup_arch: mov edi, 0x70000 mov cr3, edi - ;enable Page Address Extension and Page Size Extension + ;enable Page Global, Page Address Extension, and Page Size Extension mov eax, cr4 - or eax, 1 << 5 | 1 << 4 + or eax, 1 << 7 | 1 << 5 | 1 << 4 mov cr4, eax ; load protected mode GDT