fixing up paging issues
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
.code32
|
||||
.global load_page_directory
|
||||
load_page_directory:
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
mov 8(%ebp), %eax
|
||||
.code32
|
||||
.global flush_tlb
|
||||
flush_tlb:
|
||||
mov %cr3, %eax
|
||||
mov %eax, %cr3
|
||||
|
||||
leave
|
||||
ret
|
||||
|
||||
.global enable_paging
|
||||
enable_paging:
|
||||
mov %eax, %cr0
|
||||
orl $0x80000000, %eax
|
||||
mov %cr0, %eax
|
||||
jmp 1f
|
||||
1:
|
||||
|
||||
.global disable_pae
|
||||
disable_pae:
|
||||
ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user