Made the "get_memory_map failed" error panic the kernel, to avoid random
crashes at a later time. I observed one error at 8033a802, but the address was allocated by the driver and should have been fully locked. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19988 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
562ce636d3
commit
55a5f66c21
@ -126,10 +126,10 @@ void contigfree(void *p, int p1, int p2);
|
||||
static inline unsigned long vtophys(unsigned long virtual_addr)
|
||||
{
|
||||
physical_entry pe;
|
||||
if (get_memory_map((void *)virtual_addr, 2048, &pe, 1) < 0) {
|
||||
ERROROUT1("get_memory_map failed for %p\n", (void *)virtual_addr);
|
||||
return 0;
|
||||
}
|
||||
status_t err;
|
||||
err = get_memory_map((void *)virtual_addr, 2048, &pe, 1);
|
||||
if (err < 0)
|
||||
panic("ipro1000: get_memory_map failed for %p, error %08lx\n", (void *)virtual_addr, err);
|
||||
return (unsigned long) pe.address;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user