getting physical address from virtual and vice versa
Posted: Mon May 28, 2012 7:30 am
Hi,
I am following the OS development tutorial to write my own OS.
I am trying to implement multi-tasking in kernel mode.
I need to have functions to
1. translate virtual address to physical address. - This is required to get the physical
address of page directory lo load in the cr3 register.
2. translate physical address to virtual address - this is required to make
changes to a page table when the physical address of page table is available from the page directory.
What is a good of doing the above functions?
Thanks
Vaibhav Jain
I am following the OS development tutorial to write my own OS.
I am trying to implement multi-tasking in kernel mode.
I need to have functions to
1. translate virtual address to physical address. - This is required to get the physical
address of page directory lo load in the cr3 register.
2. translate physical address to virtual address - this is required to make
changes to a page table when the physical address of page table is available from the page directory.
What is a good of doing the above functions?
Thanks
Vaibhav Jain