[xburst] Fix image generation for qi_lb60 subtarget
[openwrt.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / prom.c
index a7abb3d..f635b4a 100644 (file)
@@ -9,7 +9,6 @@
  * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
  * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
  *
- * $Id: prom.c,v 1.1 2005/03/16 13:49:59 wbx Exp $
  */
 
 #include <linux/config.h>
@@ -32,6 +31,15 @@ prom_init(int argc, const char **argv)
                    *(unsigned long *)(prom_init))
                        break;
        }
+
+       /* Ignoring the last page when ddr size is 128M. Cached
+        * accesses to last page is causing the processor to prefetch
+        * using address above 128M stepping out of the ddr address
+        * space.
+        */
+       if (mem == 0x8000000)
+               mem -= 0x1000;
+
        add_memory_region(0, mem, BOOT_MEM_RAM);
 }
 
This page took 0.02303 seconds and 4 git commands to generate.