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:
peter 2002-08-04 18:11:38 +00:00
parent a3625aac03
commit b1ae8f9d32
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);