summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-rpc
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-rpc
parent684f970e2fd2dc0eb8292500903f54f1ebda0e75 (diff)
downloadop-kernel-dev-cc56449f53ba45646c6f0a2edf77c4acb342caed.zip
op-kernel-dev-cc56449f53ba45646c6f0a2edf77c4acb342caed.tar.gz
[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-rpc')
-rw-r--r--include/asm-arm/arch-rpc/debug-macro.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-arm/arch-rpc/debug-macro.S b/include/asm-arm/arch-rpc/debug-macro.S
index 0711828..456d3d7 100644
--- a/include/asm-arm/arch-rpc/debug-macro.S
+++ b/include/asm-arm/arch-rpc/debug-macro.S
@@ -12,7 +12,10 @@
*/
.macro addruart,rx
- mov \rx, #0xe0000000
+ mrc p15, 0, \rx, c1, c0
+ tst \rx, #1 @ MMU enabled?
+ moveq \rx, #0x03000000
+ movne \rx, #0xe0000000
orr \rx, \rx, #0x00010000
orr \rx, \rx, #0x00000fe0
.endm
OpenPOWER on IntegriCloud