Use B_ANY_KERNEL_ADDRESS instead of B_ANY_KERNEL_BLOCK_ADDRESS, like suggested by Axel and Marcus

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27794 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-30 15:19:30 +00:00
parent 2c348abbf7
commit fb62af45a2

View File

@ -123,7 +123,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <unistd.h>
#include <malloc.h>
#include <sys/time.h> #include <sys/time.h>
#include <OS.h> #include <OS.h>
@ -510,7 +509,7 @@ AcpiOsMapMemory (
void *there; void *there;
area = map_physical_memory("acpi_physical_mem_area", map_base, area = map_physical_memory("acpi_physical_mem_area", map_base,
ROUNDUP(length + page_offset,B_PAGE_SIZE),B_ANY_KERNEL_BLOCK_ADDRESS,0,&there); ROUNDUP(length + page_offset,B_PAGE_SIZE),B_ANY_KERNEL_ADDRESS,0,&there);
if (area < 0) { if (area < 0) {
dprintf("ACPI: cannot map memory at %p, length %ld\n", map_base, length); dprintf("ACPI: cannot map memory at %p, length %ld\n", map_base, length);
return NULL; return NULL;