diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2015-03-18 14:14:09 +0000 |
---|---|---|
committer | Ben Dooks <ben.dooks@codethink.co.uk> | 2015-03-18 14:55:24 +0000 |
commit | 8d9c6a8948a03cdbc9de7fdfcfa24eb2d41f5e99 (patch) | |
tree | 6e99a9fe95ca79c5fdd686feddb4cf6c8ba040f3 | |
parent | c3da234fc954b5aa840479d932565018d06eb8c6 (diff) | |
download | linux-8d9c6a8948a03cdbc9de7fdfcfa24eb2d41f5e99.tar.gz |
ARM: at91: debug: fix debug in big endian mode
Add appropriate endian swaps for when the CPU is in big endian
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
--
CC: Andrew Victor <linux@maxim.org.za>
CC: Nicolas Ferre <nicolas.ferre@atmel.com>
CC: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
CC: Russell King <linux@arm.linux.org.uk>
CC: Linux ARM Kernel <linux-arm-kernel@lists.infradead.org>
-rw-r--r-- | arch/arm/include/debug/at91.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/debug/at91.S b/arch/arm/include/debug/at91.S index c3c45e628e33..0217f8da4e1c 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 |