Mark kernel memory global

This commit is contained in:
Jeremy Soller
2016-10-16 16:18:01 -06:00
parent bc85313dce
commit cd2426989f
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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