Thread (43 messages) 43 messages, 13 authors, 2015-03-26
STALE4122d

[PATCH 05/13] ARM: at91: debug: fix debug in big endian mode

From: Ben Dooks <hidden>
Date: 2015-03-18 15:53:04
Subsystem: arm port, arm/microchip (at91) soc support, the rest · Maintainers: Russell King, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Linus Torvalds

Add appropriate endian swaps for when the CPU is in big endian

Signed-off-by: Ben Dooks <redacted>
--
CC: Andrew Victor <redacted>
CC: Nicolas Ferre <redacted>
CC: Jean-Christophe Plagniol-Villard <redacted>
CC: Russell King <redacted>
CC: Linux ARM Kernel <redacted>
---
 arch/arm/include/debug/at91.S | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/arm/include/debug/at91.S b/arch/arm/include/debug/at91.S
index c3c45e6..0217f8d 100644
--- a/arch/arm/include/debug/at91.S
+++ b/arch/arm/include/debug/at91.S
@@ -40,12 +40,14 @@
 
 	.macro	waituart,rd,rx
 1001:	ldr	\rd, [\rx, #(AT91_DBGU_SR)]		@ Read Status Register
+ARM_BE8(rev	\rd, \rd)
 	tst	\rd, #AT91_DBGU_TXRDY			@ DBGU_TXRDY = 1 when ready to transmit
 	beq	1001b
 	.endm
 
 	.macro	busyuart,rd,rx
 1001:	ldr	\rd, [\rx, #(AT91_DBGU_SR)]		@ Read Status Register
+ARM_BE8(rev	\rd, \rd)
 	tst	\rd, #AT91_DBGU_TXEMPTY			@ DBGU_TXEMPTY = 1 when transmission complete
 	beq	1001b
 	.endm
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help