I would like help understanding paging, I have tried for a while now to set it up properly yet haven't been able to do it successfully. I have looked at many others implementations to try and understand better but QEMU resets or the kernel freezes after mapping or setting the CR0. gdb says it cannot access a memory address after setting the CR0.
I don't fully understand what should be going into the frame and if I should identity map the kernel.
Paging issues
-
- Posts: 6
- Joined: Sat Jan 25, 2020 9:03 pm
- Location: Texas
- GitHub: https://github.com/Roverx64
- Contact:
-
- Member
- Posts: 5885
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Paging issues
You must identity map the code that enables paging. You don't need to identity map the entire kernel, but you can do it if you feel like going against conventions. (The kernel is usually mapped at a very high address on x86.)