Ticket #5164: pagetablesize2.diff

File pagetablesize2.diff, 655 bytes (added by andreasf, 10 years ago)

local patch to tweak suggested page table size

  • 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 262e2c1..ffada43 100644
    a b arch_mmu_init(void)  
    869869    addr_t realSize = 0x400000;
    870870
    871871    // can we just keep the page table?
    872     size_t suggestedTableSize = suggested_page_table_size(total);
     872    size_t suggestedTableSize = suggested_page_table_size(total) * 2;
    873873    printf("suggested page table size = %u\n", suggestedTableSize);
    874874    if (tableSize < suggestedTableSize) {
    875875        // nah, we need a new one!