Ticket #5193: 0009-Don-t-keep-any-ranges.patch

File 0009-Don-t-keep-any-ranges.patch, 1.4 KB (added by andreasf, 10 years ago)

patch: revert hrev34863 and don't add ranges to keep

  • src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp

    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,  
    474474        }
    475475        if (map->virtual_address == oldPageTable)
    476476            keepRange = false;
    477         if (!is_physical_memory(map->physical_address)) {
    478             keepRange = false;
    479                 // we only get vm_pages for physical memory
    480         }
    481477
    482478        // insert range in virtual allocated
    483479
    find_allocated_ranges(void *oldPageTable, void *pageTable,  
    495491        // insert range in virtual ranges to keep
    496492
    497493        if (keepRange) {
    498             if (insert_virtual_range_to_keep(map->virtual_address,
     494            /*if (insert_virtual_range_to_keep(map->virtual_address,
    499495                    map->length) != B_OK) {
    500496                printf("cannot map virtual range to keep (num ranges = %lu)!\n",
    501497                    gKernelArgs.num_virtual_allocated_ranges);
    502             }
     498            }*/
    503499        }
    504500
    505501        total += map->length;