[PATCH] ARM: allow DEBUG_UNCOMPRESS for omap2plus
Stephen Warren
swarren at wwwdotorg.org
Tue Jul 30 18:49:18 EDT 2013
From: Stephen Warren <swarren at nvidia.com>
DEBUG_UNCOMPRESS was previously disallowed for omap2plus due to
omap2plus.S's use of .data, which is not allowed in the decompressor.
Solve this by placing that data into .text when building the file into
the decompressor. This relies on .text actually being writable in the
decompressor, which it is in practice.
Cc: Shawn Guo <shawn.guo at linaro.org>
Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
Note that I have build-tested this with omap2plus_defconfig, but not
run-time tested it in any way.
---
arch/arm/Kconfig.debug | 2 +-
arch/arm/include/debug/omap2plus.S | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index d8ff7f7..8eb04b1 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1046,7 +1046,7 @@ config DEBUG_UART_8250_FLOW_CONTROL
config DEBUG_UNCOMPRESS
bool
depends on ARCH_MULTIPLATFORM
- default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART
+ default y if DEBUG_LL
help
This option influences the normal decompressor output for
multiplatform kernels. Normally, multiplatform kernels disable
diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S
index 6d867ae..364ae35 100644
--- a/arch/arm/include/debug/omap2plus.S
+++ b/arch/arm/include/debug/omap2plus.S
@@ -58,11 +58,15 @@
#define UART_OFFSET(addr) ((addr) & 0x00ffffff)
+#if !defined(ZIMAGE)
.pushsection .data
+#endif
omap_uart_phys: .word 0
omap_uart_virt: .word 0
omap_uart_lsr: .word 0
+#if !defined(ZIMAGE)
.popsection
+#endif
.macro addruart, rp, rv, tmp
--
1.8.1.5
More information about the linux-arm-kernel
mailing list