diff options
author | Daniel Walker <dwalker@codeaurora.org> | 2010-10-27 18:25:59 -0400 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-10-29 18:56:04 -0400 |
commit | bcd72c3e0aff4b68d648d37ece423f2ccaf95337 (patch) | |
tree | 0ea156dfcd502436dc91c759396086a295bf71c0 /arch/arm/mach-msm/include/mach | |
parent | 6f9419619ef6de9d7781c1a312cf6099e5b44789 (diff) |
msm: fix debug-macro.S build failure
Originally there was an ifdef case to handle when no debug uart
was selected. In commit 0ea1293009826da45e1019f45dfde1e557bb30df
that case was removed which causes the following build failure,
linux-2.6/arch/arm/kernel/debug.S: Assembler messages:
linux-2.6/arch/arm/kernel/debug.S:174: Error: bad instruction `addruart r1,r2'
linux-2.6/arch/arm/kernel/debug.S:176: Error: bad instruction `waituart r2,r3'
linux-2.6/arch/arm/kernel/debug.S:177: Error: bad instruction `senduart r1,r3'
linux-2.6/arch/arm/kernel/debug.S:178: Error: bad instruction `busyuart r2,r3'
linux-2.6/arch/arm/kernel/debug.S:190: Error: bad instruction `addruart r1,r2'
This is a partial revert to add back the case which was removed with
two caveats. First the API for the addruart macro was updated, and
the new addruart case now return 0xfff00000 so that a know IO mapping
is created instead of a random one.
Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Jason Wang <jason77.wang@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/include/mach')
-rw-r--r-- | arch/arm/mach-msm/include/mach/debug-macro.S | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/include/mach/debug-macro.S b/arch/arm/mach-msm/include/mach/debug-macro.S index fbd5d90dcc8c..f792e01d2c8e 100644 --- a/arch/arm/mach-msm/include/mach/debug-macro.S +++ b/arch/arm/mach-msm/include/mach/debug-macro.S | |||
@@ -36,7 +36,18 @@ | |||
36 | tst \rd, #0x04 | 36 | tst \rd, #0x04 |
37 | beq 1001b | 37 | beq 1001b |
38 | .endm | 38 | .endm |
39 | #else | ||
40 | .macro addruart, rp, rv | ||
41 | mov \rv, #0xff000000 | ||
42 | orr \rv, \rv, #0x00f00000 | ||
43 | .endm | ||
39 | 44 | ||
40 | .macro busyuart,rd,rx | 45 | .macro senduart,rd,rx |
46 | .endm | ||
47 | |||
48 | .macro waituart,rd,rx | ||
41 | .endm | 49 | .endm |
42 | #endif | 50 | #endif |
51 | |||
52 | .macro busyuart,rd,rx | ||
53 | .endm | ||