From patchwork Fri Mar 20 15:36:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 6057841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BEAB4BF90F for ; Fri, 20 Mar 2015 15:41:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6D55204D5 for ; Fri, 20 Mar 2015 15:41:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C04D2049E for ; Fri, 20 Mar 2015 15:41:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYz0i-0008Pp-31; Fri, 20 Mar 2015 15:38:56 +0000 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYz0e-0008LY-5M for linux-arm-kernel@lists.infradead.org; Fri, 20 Mar 2015 15:38:53 +0000 Received: by lbblx11 with SMTP id lx11so55998706lbb.3 for ; Fri, 20 Mar 2015 08:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=401zrn/D1JZbRgBCowijtxmxWitMQKSRHv0+kz9V6To=; b=BjnFvaX8dSRgSPo8i7MA/wkbMJ34RbBKjSs8+lXSg0KP2cQxr/LsPrKaq7kIz2EQ7w QKxkB0hQMluan9qnX6kHM721LaIjET7q5Y9yDOmmiDeH+hkaeQken5sp0QIyRwQFcWPo OTkrondK9+NH7/rnAXKM2+FwMwfWWCxZZxRQvMBSKiCv/bBGiXV2XkMAlRNxVvPb6puo xYc2a7aVGHkRYO+0zvJBBT/ukfeENDEF7GP9HI+WNOvOHwG+GQ/YixRv2OjMi9mP524b 97SmsfHceQvd+kizfLpC1QQGUKvWfc1jBaKDDFziLn/QzJI5XWern6oQTI0V21+2rC6p 7e+A== X-Received: by 10.112.167.138 with SMTP id zo10mr9224096lbb.75.1426865908471; Fri, 20 Mar 2015 08:38:28 -0700 (PDT) Received: from localhost.localdomain ([46.138.70.252]) by mx.google.com with ESMTPSA id rk3sm1002386lbb.23.2015.03.20.08.38.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Mar 2015 08:38:27 -0700 (PDT) From: Dmitry Osipenko To: digetx@gmail.com, Stephen Warren , Thierry Reding , Alexandre Courbot Subject: [PATCH] ARM: trusted_foundations: Maintain CPU endianness Date: Fri, 20 Mar 2015 18:36:44 +0300 Message-Id: <1426865807-22981-1-git-send-email-digetx@gmail.com> X-Mailer: git-send-email 2.3.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150320_083852_741137_10F0FABE X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-tegra@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert CPU reset vector address to LE to support big-endian kernel. Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/firmware/trusted_foundations.c b/arch/arm/firmware/trusted_foundations.c index 3fb1b5a..865103a 100644 --- a/arch/arm/firmware/trusted_foundations.c +++ b/arch/arm/firmware/trusted_foundations.c @@ -50,7 +50,7 @@ static void __naked tf_generic_smc(u32 type, u32 arg1, u32 arg2) static int tf_set_cpu_boot_addr(int cpu, unsigned long boot_addr) { - cpu_boot_addr = boot_addr; + cpu_boot_addr = cpu_to_le32(boot_addr); tf_generic_smc(TF_SET_CPU_BOOT_ADDR_SMC, cpu_boot_addr, 0); return 0;