Paging

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
Travis

Paging

Post by Travis »

Hi!

I am going to implement paging in my kernel but before that i have one question. How do I load a program to a specific page from my kernel. Should I write it to the physical address of the page or what?

Thanks for the help I am sure you will give me.
DruG5t0r3

Re:Paging

Post by DruG5t0r3 »

You need to map a certain number of pages first from the kernel, so that it maps physical memory to something in virtual memory such as (0x10000) or so. Then you can start writing directly to that memory from your kernel. If you plan to do multitasking, then you will most probably have to implement what we call memory contexts for each and every threads. I'd recommend to read some of the wiki regarding multitasking.
Post Reply