From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965121AbbFJONs (ORCPT ); Wed, 10 Jun 2015 10:13:48 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:33371 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964910AbbFJONf (ORCPT ); Wed, 10 Jun 2015 10:13:35 -0400 From: Arun Chandran To: Michal Simek Cc: linux-kernel@vger.kernel.org, Michal Simek , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , linux-arm-kernel@lists.infradead.org, Arun Chandran Subject: [PATCH v1] ARM: zynq: Fix earlyprintk in big endian mode Date: Wed, 10 Jun 2015 19:43:04 +0530 Message-Id: <1433945584-16379-1-git-send-email-achandran@mvista.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- --- 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 -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: achandran@mvista.com (Arun Chandran) Date: Wed, 10 Jun 2015 19:43:04 +0530 Subject: [PATCH v1] ARM: zynq: Fix earlyprintk in big endian mode Message-ID: <1433945584-16379-1-git-send-email-achandran@mvista.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 --- --- 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 -- 1.9.1