map_page() will now be a bit more specific when it complains about an

invalid page.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-04-21 18:45:21 +00:00
parent 8d35b1a200
commit bbf495f47d

View File

@ -112,7 +112,7 @@ map_page(addr_t virtualAddress, addr_t physicalAddress, uint32 flags)
TRACE(("map_page: vaddr 0x%lx, paddr 0x%lx\n", virtualAddress, physicalAddress));
if (virtualAddress < KERNEL_BASE || virtualAddress >= (KERNEL_BASE + 4096*1024))
panic("map_page: asked to map invalid page!\n");
panic("map_page: asked to map invalid page %p!\n", (void *)virtualAddress);
physicalAddress &= ~(B_PAGE_SIZE - 1);