Skip to content

Commit 974a2ab

Browse files
arun-chandranMichal Simek
authored andcommitted
ARM: zynq: Fix earlyprintk in big endian mode
earlyprintk messages are not appearing on the terminal emulator during a big endian kernel boot. In BE mode sending full words to UART will result in unprintable characters as they are byte swapped versions of printable ones. So send only bytes. Signed-off-by: Arun Chandran <achandran@mvista.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
1 parent d770e55 commit 974a2ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/include/debug/zynq.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
.endm
3939

4040
.macro senduart,rd,rx
41-
str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
41+
strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
4242
.endm
4343

4444
.macro waituart,rd,rx

0 commit comments

Comments
 (0)