summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/debug/8250.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/debug/8250.S')
-rw-r--r--arch/arm/include/debug/8250.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/debug/8250.S b/arch/arm/include/debug/8250.S
index 7a2baf913aa0..7f7446f6f806 100644
--- a/arch/arm/include/debug/8250.S
+++ b/arch/arm/include/debug/8250.S
@@ -16,11 +16,14 @@
#ifdef CONFIG_DEBUG_UART_8250_WORD
.macro store, rd, rx:vararg
+ ARM_BE8(rev \rd, \rd)
str \rd, \rx
+ ARM_BE8(rev \rd, \rd)
.endm
.macro load, rd, rx:vararg
ldr \rd, \rx
+ ARM_BE8(rev \rd, \rd)
.endm
#else
.macro store, rd, rx:vararg
OpenPOWER on IntegriCloud