How to do identity mapping?

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
ApplePieCodes
Posts: 6
Joined: Mon Apr 14, 2025 11:58 am

How to do identity mapping?

Post by ApplePieCodes »

I have set up physical memory management in my kernel, and wish to setup a page table. I have setup the following structs
https://pastebin.com/3pz23BDA. How do I identity map it?
Edit: I am using limine, which i have heard sets up identity mapping for you. do i even need to do vmm?
Octocontrabass
Member
Member
Posts: 5768
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to do identity mapping?

Post by Octocontrabass »

ApplePieCodes wrote: Tue Apr 15, 2025 10:34 amHow do I identity map it?
...Set up page tables where the virtual and physical addresses are equal? You might have to explain the problem in a bit more detail if that doesn't answer your question.
ApplePieCodes wrote: Tue Apr 15, 2025 10:34 amEdit: I am using limine, which i have heard sets up identity mapping for you. do i even need to do vmm?
You do if you ever want to use something other than identity mapping.
ApplePieCodes
Posts: 6
Joined: Mon Apr 14, 2025 11:58 am

Re: How to do identity mapping?

Post by ApplePieCodes »

I guess I'll just leave it as limine set it then
Post Reply