Mark kernel memory global
This commit is contained in:
parent
2e575db3db
commit
9c2a45d0bf
6 changed files with 20 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue