aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-nomadik/include/mach/debug-macro.S
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-09-12 11:50:52 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-09-12 11:50:52 +0100
commit701038144945ef98c5817f43079952fa38c35999 (patch)
tree88782f6ac8e4df1f7f8f738659adedd7108e8cae /arch/arm/mach-nomadik/include/mach/debug-macro.S
parent4abf27add86e5b7c37dca1fb4dd9a740b4332a84 (diff)
parentc2b455474e4c6bc8bab6506e2a08dbd5ad50d74d (diff)
Merge branch 'nomadik' into devel-stable
Diffstat (limited to 'arch/arm/mach-nomadik/include/mach/debug-macro.S')
-rw-r--r--arch/arm/mach-nomadik/include/mach/debug-macro.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-nomadik/include/mach/debug-macro.S b/arch/arm/mach-nomadik/include/mach/debug-macro.S
new file mode 100644
index 00000000000..e876990e156
--- /dev/null
+++ b/arch/arm/mach-nomadik/include/mach/debug-macro.S
@@ -0,0 +1,22 @@
+/*
+ * Debugging macro include header
+ *
+ * Copyright (C) 1994-1999 Russell King
+ * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+*/
+
+ .macro addruart,rx
+ mrc p15, 0, \rx, c1, c0
+ tst \rx, #1 @ MMU enabled?
+ moveq \rx, #0x10000000 @ physical base address
+ movne \rx, #0xf0000000 @ virtual base
+ add \rx, \rx, #0x00100000
+ add \rx, \rx, #0x000fb000
+ .endm
+
+#include <asm/hardware/debug-pl01x.S>