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:
2022-08-19 00:44:52 +02:00
parent 7d6c823d79
commit d280aa0584
7 changed files with 145 additions and 30 deletions

View File

@ -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