Paging troubles
Posted: Tue Jul 16, 2002 11:00 pm
Yes, well.... It seems I am having yet another problem. My kernel is running fine, with everything set up including an FDC controller and multi-tasking capability. Then I tried to set up paging. This is giving me real headaches!!
I went over to Bona Fide OS Dev site, and looked at the basic paging tutorial. I have virtually implemented what they said in there to the letter, but it still doesn't seem to work. I get a triple fault (using VMWare, so I can see this), whenever i set the paging bit in CR0 to 1. My CR3 contains the correct address to the PDE, and the PDE is set up correctly for the PTE's. At the moment I have only the first 4Mb of RAM mapped linear (virtual-to-physical).
The only thing I seem to be doing differently is that I set up the paging and try to enable paging when already in Protected Mode... is this a problem?
Banging head against wall,
HuntrCkr
I went over to Bona Fide OS Dev site, and looked at the basic paging tutorial. I have virtually implemented what they said in there to the letter, but it still doesn't seem to work. I get a triple fault (using VMWare, so I can see this), whenever i set the paging bit in CR0 to 1. My CR3 contains the correct address to the PDE, and the PDE is set up correctly for the PTE's. At the moment I have only the first 4Mb of RAM mapped linear (virtual-to-physical).
The only thing I seem to be doing differently is that I set up the paging and try to enable paging when already in Protected Mode... is this a problem?
Banging head against wall,
HuntrCkr