Page 1 of 1

Paging

Posted: Fri Aug 26, 2005 5:44 pm
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.

Re:Paging

Posted: Fri Aug 26, 2005 5:56 pm
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.