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.
I have a problem in the implementation of paging.
My bootloader loads the kernel at 0x10000, but when I must enable paging the kernel must be at the virtual address 0xC0000000.
How can I do?
Okay what exactly is the question are you asking? Is it
1. How do I set up the page directory and page tables in order to have the kernel mapped at 0xC0000000?
2. How do I run the code to map the kernel to 0xC0000000 when the kernel thinks that it is mapped at 0xC0000000 that is how do I get code to run that thinks it's mapped in at 0xC0000000 before paging is enabled?
or
3. How do I make the kernel think that it is mapped in at 0xC0000000?
frank wrote:Okay what exactly is the question are you asking? Is it
1. How do I set up the page directory and page tables in order to have the kernel mapped at 0xC0000000?
2. How do I run the code to map the kernel to 0xC0000000 when the kernel thinks that it is mapped at 0xC0000000 that is how do I get code to run that thinks it's mapped in at 0xC0000000 before paging is enabled?
or
3. How do I make the kernel think that it is mapped in at 0xC0000000?
My kernel is linked at 0xC0000000, but in the boot loader the kernel is loaded at 0x10000 and after it goes to protected mode. I must enable paging first and after call the kernel?