ARM: zynq: Fix earlyprintk in big endian mode
authorArun Chandran <achandran@mvista.com>
Fri, 12 Jun 2015 06:53:24 +0000 (12:23 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 22 Jul 2015 07:37:58 +0000 (09:37 +0200)
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>
arch/arm/include/debug/zynq.S

index bd13dedbdeffe25cfc455ec3a1f9caa42f314ce4..de86b924756401da3189c625ef5bde99d57b1782 100644 (file)
@@ -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
This page took 0.024483 seconds and 5 git commands to generate.