paging!!! very important
Posted: Thu Jan 15, 2004 12:00 am
Hi guys,
I say it is very important because I would like to start writing today.
I know how to setup GDT, I also know in theory how to setu IDT. The thing I don't know is how use paging.
I have read a lot of texts, and some codes. The problem is what have paging to do with GDT?
At start I sets up some GDT entries for kernel CODE, DATA and STACK (+some more not very important). Now, what do I need to care about GDT when I enable paging.
When I have a GDT, and enable PAGING I must prepare first pages for the kernel, when the kernel's code descriptor base is 1MB and the limit 100(*granuality 4kb), and the actual kernel memory usage is 4kb*10, I sets 10 pages, and the rest of the mem will cause PF?, Is that right?
If no please send me some info.
Przemek Grzywacz
Thanks.
I say it is very important because I would like to start writing today.
I know how to setup GDT, I also know in theory how to setu IDT. The thing I don't know is how use paging.
I have read a lot of texts, and some codes. The problem is what have paging to do with GDT?
At start I sets up some GDT entries for kernel CODE, DATA and STACK (+some more not very important). Now, what do I need to care about GDT when I enable paging.
When I have a GDT, and enable PAGING I must prepare first pages for the kernel, when the kernel's code descriptor base is 1MB and the limit 100(*granuality 4kb), and the actual kernel memory usage is 4kb*10, I sets 10 pages, and the rest of the mem will cause PF?, Is that right?
If no please send me some info.
Przemek Grzywacz
Thanks.