From 640da9ad9468a7cee9462bb8c0a6182d2dadd3df Mon Sep 17 00:00:00 2001
From: Andreas Faerber <andreas.faerber@web.de>
Date: Fri, 8 Jan 2010 22:21:37 +0100
Subject: [PATCH 9/9] Don't keep any ranges
---
.../boot/platform/openfirmware/arch/ppc/mmu.cpp | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp b/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp
index ecefbeb..6d57e0d 100644
a
|
b
|
find_allocated_ranges(void *oldPageTable, void *pageTable,
|
474 | 474 | } |
475 | 475 | if (map->virtual_address == oldPageTable) |
476 | 476 | keepRange = false; |
477 | | if (!is_physical_memory(map->physical_address)) { |
478 | | keepRange = false; |
479 | | // we only get vm_pages for physical memory |
480 | | } |
481 | 477 | |
482 | 478 | // insert range in virtual allocated |
483 | 479 | |
… |
… |
find_allocated_ranges(void *oldPageTable, void *pageTable,
|
495 | 491 | // insert range in virtual ranges to keep |
496 | 492 | |
497 | 493 | if (keepRange) { |
498 | | if (insert_virtual_range_to_keep(map->virtual_address, |
| 494 | /*if (insert_virtual_range_to_keep(map->virtual_address, |
499 | 495 | map->length) != B_OK) { |
500 | 496 | printf("cannot map virtual range to keep (num ranges = %lu)!\n", |
501 | 497 | gKernelArgs.num_virtual_allocated_ranges); |
502 | | } |
| 498 | }*/ |
503 | 499 | } |
504 | 500 | |
505 | 501 | total += map->length; |