aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-2.6.22/100-board_support.patch
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2007-09-12 17:48:46 +0000
committerMatteo Croce <rootkit85@yahoo.it>2007-09-12 17:48:46 +0000
commitc0c12e278b1e5955d6da26fb41d579137a8620cf (patch)
tree4f187dfbdd243fe0a7865060517f88f09b67696c /target/linux/ar7/patches-2.6.22/100-board_support.patch
parentf7ff1d6d0f03c3f7ce8c0349ac33739a8e1a9ebb (diff)
downloadupstream-c0c12e278b1e5955d6da26fb41d579137a8620cf.tar.gz
upstream-c0c12e278b1e5955d6da26fb41d579137a8620cf.tar.bz2
upstream-c0c12e278b1e5955d6da26fb41d579137a8620cf.zip
use ebase instead of CAC_BASE, some cosmetic fixes
SVN-Revision: 8766
Diffstat (limited to 'target/linux/ar7/patches-2.6.22/100-board_support.patch')
-rw-r--r--target/linux/ar7/patches-2.6.22/100-board_support.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ar7/patches-2.6.22/100-board_support.patch b/target/linux/ar7/patches-2.6.22/100-board_support.patch
index ee86a14304..ba070df294 100644
--- a/target/linux/ar7/patches-2.6.22/100-board_support.patch
+++ b/target/linux/ar7/patches-2.6.22/100-board_support.patch
@@ -32,16 +32,16 @@ diff -urN linux-2.6.22/arch/mips/kernel/traps.c linux-2.6.22.new/arch/mips/kerne
if (n == 0 && cpu_has_divec) {
+#ifdef CONFIG_AR7
+ /* lui k0, 0x0000 */
-+ *(volatile u32 *)(CAC_BASE+0x200) =
++ *(volatile u32 *)(ebase + 0x200) =
+ 0x3c1a0000 | (handler >> 16);
+ /* ori k0, 0x0000 */
-+ *(volatile u32 *)(CAC_BASE+0x204) =
++ *(volatile u32 *)(ebase + 0x204) =
+ 0x375a0000 | (handler & 0xffff);
+ /* jr k0 */
-+ *(volatile u32 *)(CAC_BASE+0x208) = 0x03400008;
++ *(volatile u32 *)(ebase + 0x208) = 0x03400008;
+ /* nop */
-+ *(volatile u32 *)(CAC_BASE+0x20C) = 0x00000000;
-+ flush_icache_range(CAC_BASE+0x200, CAC_BASE+0x210);
++ *(volatile u32 *)(ebase + 0x20C) = 0x00000000;
++ flush_icache_range(ebase + 0x200, ebase + 0x210);
+#else
*(volatile u32 *)(ebase + 0x200) = 0x08000000 |
(0x03ffffff & (handler >> 2));