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: 452688 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 09E221401AF for ; Sat, 21 Mar 2015 02:38:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=BjnFvaX8; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752350AbbCTPia (ORCPT ); Fri, 20 Mar 2015 11:38:30 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:36178 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbbCTPia (ORCPT ); Fri, 20 Mar 2015 11:38:30 -0400 Received: by lbblx11 with SMTP id lx11so55998716lbb.3; 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 Cc: linux-tegra@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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;