Skip to content

Commit

Permalink
ARM: zynq: Fix earlyprintk in big endian mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arun Chandran authored and Michal Simek committed Jul 22, 2015
1 parent d770e55 commit 974a2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/debug/zynq.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
.endm

.macro senduart,rd,rx
str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
.endm

.macro waituart,rd,rx
Expand Down

0 comments on commit 974a2ab

Please sign in to comment.