Should enable CR4.PGE while switching to the kernel.
This commit is contained in:
@@ -25,9 +25,9 @@ FUNCTION(long_enter_kernel):
|
|||||||
andl $~(1 << 31), %eax
|
andl $~(1 << 31), %eax
|
||||||
movl %eax, %cr0
|
movl %eax, %cr0
|
||||||
|
|
||||||
// Enable PAE.
|
// Enable PAE and PGE
|
||||||
movl %cr4, %eax
|
movl %cr4, %eax
|
||||||
orl $(1 << 5), %eax
|
orl $(1 << 5) | (1 << 7), %eax
|
||||||
movl %eax, %cr4
|
movl %eax, %cr4
|
||||||
|
|
||||||
// Point CR3 to the kernel's PML4.
|
// Point CR3 to the kernel's PML4.
|
||||||
|
|||||||
Reference in New Issue
Block a user