aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-ebsa285
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-04-17 16:28:31 +0100
committerRussell King <rmk@dyn-67.arm.linux.org.uk>2005-04-17 16:28:31 +0100
commitcc56449f53ba45646c6f0a2edf77c4acb342caed (patch)
treec48feb9407191d61041a59dabcaf92c185eff64c /include/asm-arm/arch-ebsa285
parent[PATCH] ARM: bitops (diff)
downloadlinux-dev-cc56449f53ba45646c6f0a2edf77c4acb342caed.tar.xz
linux-dev-cc56449f53ba45646c6f0a2edf77c4acb342caed.zip
[PATCH] ARM: fix debug macros
Fix debug EBSA285 and RiscPC debugging macros to detect whether the MMU is enabled. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-ebsa285')
-rw-r--r--include/asm-arm/arch-ebsa285/debug-macro.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-arm/arch-ebsa285/debug-macro.S b/include/asm-arm/arch-ebsa285/debug-macro.S
index 237853db6e2f..97d15fc629af 100644
--- a/include/asm-arm/arch-ebsa285/debug-macro.S
+++ b/include/asm-arm/arch-ebsa285/debug-macro.S
@@ -45,9 +45,12 @@
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff
.macro addruart,rx
- mov \rx, #dc21285_high
+ mrc p15, 0, \rx, c1, c0
+ tst \rx, #1 @ MMU enabled?
+ moveq \rx, #0x42000000
+ movne \rx, #dc21285_high
.if dc21285_low
- orr \rx, \rx, #dc21285_low
+ orrne \rx, \rx, #dc21285_low
.endif
.endm