Paging issues

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Rover
Posts: 6
Joined: Sat Jan 25, 2020 9:03 pm
Location: Texas
GitHub: https://github.com/Roverx64
Contact:

Paging issues

Post by Rover »

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.
Octocontrabass
Member
Member
Posts: 5885
Joined: Mon Mar 25, 2013 7:01 pm

Re: Paging issues

Post by Octocontrabass »

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.)
Post Reply