Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arun Chandran and committed by
Michal Simek
974a2aba d770e558

+1 -1
+1 -1
arch/arm/include/debug/zynq.S
··· 38 38 .endm 39 39 40 40 .macro senduart,rd,rx 41 - str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA 41 + strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA 42 42 .endm 43 43 44 44 .macro waituart,rd,rx