summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/debug/pl01x.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/debug/pl01x.S')
-rw-r--r--arch/arm/include/debug/pl01x.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/debug/pl01x.S b/arch/arm/include/debug/pl01x.S
index 37c6895b87e..92ef808a233 100644
--- a/arch/arm/include/debug/pl01x.S
+++ b/arch/arm/include/debug/pl01x.S
@@ -25,12 +25,14 @@
.macro waituart,rd,rx
1001: ldr \rd, [\rx, #UART01x_FR]
+ ARM_BE8( rev \rd, \rd )
tst \rd, #UART01x_FR_TXFF
bne 1001b
.endm
.macro busyuart,rd,rx
1001: ldr \rd, [\rx, #UART01x_FR]
+ ARM_BE8( rev \rd, \rd )
tst \rd, #UART01x_FR_BUSY
bne 1001b
.endm