source: trunk/target/linux/brcm47xx/patches-2.6.28/170-128MB_ram_bugfix.patch @ 18413

Last change on this file since 18413 was 18413, checked in by hauke, 7 years ago

[brcm47xx] fix problem with 128MB ram.

This patch is out of broadcoms official source code

File size: 433 bytes
  • arch/mips/bcm47xx/prom.c

    a b static __init void prom_init_mem(void) 
    141141                        break; 
    142142        } 
    143143 
     144        /* Ignoring the last page when ddr size is 128M. Cached 
     145         * accesses to last page is causing the processor to prefetch 
     146         * using address above 128M stepping out of the ddr address 
     147         * space. 
     148         */ 
     149        if (mem == 0x8000000) 
     150                mem -= 0x1000; 
     151 
    144152        add_memory_region(0, mem, BOOT_MEM_RAM); 
    145153} 
    146154 
Note: See TracBrowser for help on using the repository browser.