Force allocation of physical memory < 4 GB until the related TODOs are fixed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-06-21 16:47:29 +00:00
parent be87d0a03e
commit 64cf56f5cd
2 changed files with 6 additions and 2 deletions
@@ -75,7 +75,9 @@ PhysicalMemoryAllocator::PhysicalMemoryAllocator(const char *name,
roundedSize = (roundedSize + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
fArea = create_area(fName, &fLogicalBase, B_ANY_KERNEL_ADDRESS,
roundedSize, B_CONTIGUOUS, B_READ_AREA | B_WRITE_AREA);
roundedSize, B_32_BIT_MEMORY, B_READ_AREA | B_WRITE_AREA);
// TODO: Use B_CONTIGUOUS when the TODOs regarding 64 bit physical
// addresses are fixed (if possible).
if (fArea < B_OK) {
TRACE_ERROR(("PMA: failed to create memory area\n"));
return;
@@ -300,7 +300,9 @@ Stack::AllocateArea(void **logicalAddress, void **physicalAddress, size_t size,
void *logAddress;
size = (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
area_id area = create_area(name, &logAddress, B_ANY_KERNEL_ADDRESS, size,
B_CONTIGUOUS, 0);
B_32_BIT_MEMORY, 0);
// TODO: Use B_CONTIGUOUS when the TODOs regarding 64 bit physical
// addresses are fixed (if possible).
if (area < B_OK) {
TRACE_ERROR("couldn't allocate area %s\n", name);