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:
parent
2c348abbf7
commit
fb62af45a2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user