Page 1 of 1

How to do identity mapping?

Posted: Tue Apr 15, 2025 10:34 am
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?

Re: How to do identity mapping?

Posted: Tue Apr 15, 2025 11:57 am
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.

Re: How to do identity mapping?

Posted: Tue Apr 15, 2025 11:59 am
by ApplePieCodes
I guess I'll just leave it as limine set it then