LIC wrote:
My Kernel is loaded at 0x1000 in memory because I know I should not touch memory between 0x0000 and 0x1000. But I was wandering if it was safe not to map the first memory page (0x0000) when enabling paging?
I would then get a page fault if I try to access / modify memory below 0x1000.
Thanks for your answer, regards.
My kernel maps low memory at times (despite being 32/64 bit). Obviously, there's the VGA error. But 0x0-0x1000 comes into use too.
The last bit of code I wrote hit 0x40E. That's usually the location of the EBDA (stored in the BDA). That's part of my code searching for the ACPI RSDP.
Heck, I've used the IVT before. If you drop into real mode to change graphics mode, you need the IVT.
So yeah, you may want to touch that memory at some point.