Skip to content

Commit 9f3a628

Browse files
committed
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: MIPS: BCM47xx: Fix 128MB RAM support MIPS: Highmem: Fix build error
2 parents 26b0833 + 84a6fcb commit 9f3a628

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

arch/mips/bcm47xx/prom.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ 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

arch/mips/mm/highmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <linux/module.h>
22
#include <linux/highmem.h>
3+
#include <linux/sched.h>
34
#include <linux/smp.h>
45
#include <asm/fixmap.h>
56
#include <asm/tlbflush.h>

0 commit comments

Comments
 (0)