diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-15 12:07:43 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-15 12:07:43 +0000 |
commit | 482438fa91292f52a0745d911e969bddb6bc73a1 (patch) | |
tree | fe9b6f4a7fec8ebf68203c77e6cd420f30b2d2bb /target | |
parent | 2c83d00ba13bcc59bc15e13d0e1856976f63cff6 (diff) |
brcm47xx: add a few nops to keep the cpu happy
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6568 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/brcm47xx-2.6/patches/150-cpu_fixes.patch | 28 |
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 |