Fix a mistake in 1.352 - I was returning a pointer to the rounded down
address. I expect this will fix acpica.
This commit is contained in:
parent
a3625aac03
commit
b1ae8f9d32
@ -3284,7 +3284,7 @@ pmap_mapdev(pa, size)
|
||||
|
||||
/* We have a 1MB direct mapped region at KERNBASE */
|
||||
if (pa < 0x00100000 && pa + size <= 0x00100000)
|
||||
return (void *)(pa + KERNBASE);
|
||||
return (void *)(pa + offset + KERNBASE);
|
||||
|
||||
GIANT_REQUIRED;
|
||||
va = kmem_alloc_pageable(kernel_map, size);
|
||||
|
@ -3284,7 +3284,7 @@ pmap_mapdev(pa, size)
|
||||
|
||||
/* We have a 1MB direct mapped region at KERNBASE */
|
||||
if (pa < 0x00100000 && pa + size <= 0x00100000)
|
||||
return (void *)(pa + KERNBASE);
|
||||
return (void *)(pa + offset + KERNBASE);
|
||||
|
||||
GIANT_REQUIRED;
|
||||
va = kmem_alloc_pageable(kernel_map, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user