aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-15 12:07:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-15 12:07:43 +0000
commit4319c79ad42461e64dba2f5d17ebc3628a50afa4 (patch)
tree8d0e68b5c4c9887bf0b9015cc5dd46918089c5b2
parent2873adfe53d35afda5176a8d1c7dfd296ef625e8 (diff)
downloadupstream-4319c79ad42461e64dba2f5d17ebc3628a50afa4.tar.gz
upstream-4319c79ad42461e64dba2f5d17ebc3628a50afa4.tar.bz2
upstream-4319c79ad42461e64dba2f5d17ebc3628a50afa4.zip
brcm47xx: add a few nops to keep the cpu happy
SVN-Revision: 6568
-rw-r--r--target/linux/brcm47xx-2.6/patches/150-cpu_fixes.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/brcm47xx-2.6/patches/150-cpu_fixes.patch b/target/linux/brcm47xx-2.6/patches/150-cpu_fixes.patch
new file mode 100644
index 0000000000..6f9695993e
--- /dev/null
+++ b/target/linux/brcm47xx-2.6/patches/150-cpu_fixes.patch
@@ -0,0 +1,28 @@
+diff -urN linux-2.6.19.ref/arch/mips/kernel/genex.S linux-2.6.19/arch/mips/kernel/genex.S
+--- linux-2.6.19.ref/arch/mips/kernel/genex.S 2006-11-29 22:57:37.000000000 +0100
++++ linux-2.6.19/arch/mips/kernel/genex.S 2006-12-04 21:34:09.000000000 +0100
+@@ -73,6 +73,10 @@
+ .set push
+ .set mips3
+ .set noat
++#ifdef CONFIG_BCM947XX
++ nop
++ nop
++#endif
+ mfc0 k1, CP0_CAUSE
+ li k0, 31<<2
+ andi k1, k1, 0x7c
+diff -urN linux-2.6.19.ref/include/asm-mips/stackframe.h linux-2.6.19/include/asm-mips/stackframe.h
+--- linux-2.6.19.ref/include/asm-mips/stackframe.h 2006-11-29 22:57:37.000000000 +0100
++++ linux-2.6.19/include/asm-mips/stackframe.h 2006-12-04 21:34:09.000000000 +0100
+@@ -334,6 +334,10 @@
+ .macro RESTORE_SP_AND_RET
+ LONG_L sp, PT_R29(sp)
+ .set mips3
++#ifdef CONFIG_BCM947XX
++ nop
++ nop
++#endif
+ eret
+ .set mips0
+ .endm