Should I do virt_heap = phys_heap? Up to now, I have the following construction:
virtual 0x0 -> physical 0x100000
and I map 1024 pages (4mb). So that would mean:
virt_heap = phys_heap - 0x10000;
That's ok, but I need to make sure that the page tables containing the physical addresses of the heap won't be changed...I could do it like this:
Code: Select all
void page_fault(addr_t address)
{
if (addr <= virtual_kernel_end)
panic("page fault within kernel space");
else
handle_it();
}
So what do you think? Which constellation should I take?
best regards,
A. Blessing