Re: [PATCH v1] ARM: zynq: Fix earlyprintk in big endian mode

From: Michal Simek
Date: Thu Jun 11 2015 - 14:13:58 EST


On 06/10/2015 04:13 PM, Arun Chandran wrote:
> earlyprintk messages are not appearing on the terminal
> emulator during a big endian kernel boot. If we
> byte swap the sending data it comes properly.
>
> Signed-off-by: Arun Chandran <achandran@xxxxxxxxxx>
> ---
> ---
> This can be tested by adding 'early_print("early print test\n");'
> to setup_arch() in arch/arm/kernel/setup.c
> ---
> arch/arm/include/debug/zynq.S | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/include/debug/zynq.S b/arch/arm/include/debug/zynq.S
> index bd13ded..0d274fe 100644
> --- a/arch/arm/include/debug/zynq.S
> +++ b/arch/arm/include/debug/zynq.S
> @@ -38,6 +38,7 @@
> .endm
>
> .macro senduart,rd,rx
> +ARM_BE8( rev \rd, \rd )
> str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA
> .endm
>
>

Tested-by: Michal Simek <michal.simek@xxxxxxxxxx>

Thanks,
Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/