Saga of rebooting pc!
Posted: Thu Nov 21, 2002 12:00 am
Right, I have tracked my problem down to what seems to be me not flushing the TLB cache inside the CPU causing it to access an invalid location and reboot.
When I tweaked some settings I got a page fault at 0x106000, this is after I have relocated. This is the physical address of the page directory, which I have mapped up at 0x8006000. This happens when I clear the PT mappings for the first 4mb of low memory.
This would explain why VMWare and bochs were not complaining, they don't have a TLB cache emulation.
So how do I use invlpg?? I know I could reload CR3 but this is wasteful.
When I tweaked some settings I got a page fault at 0x106000, this is after I have relocated. This is the physical address of the page directory, which I have mapped up at 0x8006000. This happens when I clear the PT mappings for the first 4mb of low memory.
This would explain why VMWare and bochs were not complaining, they don't have a TLB cache emulation.
So how do I use invlpg?? I know I could reload CR3 but this is wasteful.