direct mapping and page fault handler
Posted: Tue Oct 05, 2004 9:52 am
I wrot a basic low level memory manager, that direct map the first 4MB, the rest of pages is marked as not present.
then I wrot a function that dump 512B of memory starting from a given address.
now when I dump this address 0xFFFFFF I get a page fault (which is normal), but what I can't understand is that when I dump address 0x1000000 or 0x2000000 I dont get the page fault and I get it with addresses like 0xFFFxxx ??
normally I must get a page fault for evrry addresse above 0x3FFC00 since only first 4MB are direct mapped.
then I wrot a function that dump 512B of memory starting from a given address.
now when I dump this address 0xFFFFFF I get a page fault (which is normal), but what I can't understand is that when I dump address 0x1000000 or 0x2000000 I dont get the page fault and I get it with addresses like 0xFFFxxx ??
normally I must get a page fault for evrry addresse above 0x3FFC00 since only first 4MB are direct mapped.