Page faults and protetion faults will now hang with a helpful message
to explain what is going on. I removed previously set barriers from the code to load the kernel further.
This commit is contained in:
@ -36,4 +36,28 @@ GetEFLAGS:
|
||||
|
||||
mov %ebp, %esp
|
||||
pop %ebp
|
||||
ret
|
||||
ret
|
||||
|
||||
.globl GetCR2
|
||||
GetCR2:
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
xor %eax, %eax
|
||||
mov %cr2, %eax
|
||||
|
||||
mov %ebp, %esp
|
||||
pop %ebp
|
||||
ret
|
||||
|
||||
.globl GetCR3
|
||||
GetCR3:
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
xor %eax, %eax
|
||||
mov %cr3, %eax
|
||||
|
||||
mov %ebp, %esp
|
||||
pop %ebp
|
||||
ret
|
||||
|
Reference in New Issue
Block a user