Ticket #5193: mmu_skip-non-phys.diff

File mmu_skip-non-phys.diff, 591 bytes (added by andreasf, 10 years ago)

proposed patch

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

    diff --git a/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp b/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp
    index 7c72090..ea3eace 100644
    a b find_allocated_ranges(void *oldPageTable, void *pageTable,  
    472472        }
    473473        if (map->virtual_address == oldPageTable)
    474474            keepRange = false;
     475        if (!is_physical_memory(map->physical_address))
     476            keepRange = false;  // we only get vm_pages for physical memory
    475477
    476478        // insert range in virtual allocated
    477479