Message ID | 1410835711-16295-2-git-send-email-Li.Xiubo@freescale.com |
---|---|
State | Superseded |
Delegated to: | York Sun |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 74857140169 for <incoming@patchwork.ozlabs.org>; Tue, 16 Sep 2014 15:10:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5AA1FAB577; Tue, 16 Sep 2014 07:10:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24xvmGjJ93IR; Tue, 16 Sep 2014 07:10:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57E69AB578; Tue, 16 Sep 2014 07:09:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3B2EBA740D for <u-boot@lists.denx.de>; Tue, 16 Sep 2014 04:49:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ubJhz85n3wNQ for <u-boot@lists.denx.de>; Tue, 16 Sep 2014 04:49:02 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0130.outbound.protection.outlook.com [157.56.110.130]) by theia.denx.de (Postfix) with ESMTPS id 24D0AA7415 for <u-boot@lists.denx.de>; Tue, 16 Sep 2014 04:49:00 +0200 (CEST) Received: from DM2PR03CA0032.namprd03.prod.outlook.com (10.141.96.31) by DM2PR03MB304.namprd03.prod.outlook.com (10.141.54.26) with Microsoft SMTP Server (TLS) id 15.0.1019.14; Tue, 16 Sep 2014 02:48:57 +0000 Received: from BL2FFO11FD017.protection.gbl (2a01:111:f400:7c09::149) by DM2PR03CA0032.outlook.office365.com (2a01:111:e400:2428::31) with Microsoft SMTP Server (TLS) id 15.0.1029.13 via Frontend Transport; Tue, 16 Sep 2014 02:48:57 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD017.mail.protection.outlook.com (10.173.161.35) with Microsoft SMTP Server (TLS) id 15.0.1019.14 via Frontend Transport; Tue, 16 Sep 2014 02:48:56 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s8G2mfSh001123; Mon, 15 Sep 2014 19:48:52 -0700 From: Xiubo Li <Li.Xiubo@freescale.com> To: <albert.u.boot@aribaud.net>, <alison.wang@freescale.com>, <ijc@hellion.org.uk>, <hdegoede@redhat.com>, <prabhakar@freescale.com>, <b18965@freescale.com>, <andre.przywara@linaro.org>, <marc.zyngier@arm.com>, <yamada.m@jp.panasonic.com>, <poonam.aggrwal@freescale.com>, <shaveta@freescale.com>, <u-boot@lists.denx.de> Date: Tue, 16 Sep 2014 10:48:28 +0800 Message-ID: <1410835711-16295-2-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1410835711-16295-1-git-send-email-Li.Xiubo@freescale.com> References: <1410835711-16295-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(106466001)(107046002)(93916002)(44976005)(76176999)(88136002)(6806004)(76482001)(85306004)(104016003)(2201001)(50226001)(99396002)(47776003)(89996001)(102836001)(19580395003)(36756003)(21056001)(90102001)(26826002)(85852003)(92566001)(229853001)(84676001)(83322001)(87286001)(62966002)(83072002)(31966008)(20776003)(87936001)(4396001)(50986999)(95666004)(77156001)(64706001)(48376002)(92726001)(19580405001)(97736003)(86362001)(68736004)(50466002)(104166001)(105606002)(81342003)(81542003)(74502003)(80022003)(79102003)(77982003)(46102003)(74662003)(921003)(1121002)(83996005)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB304; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 03361FCC43 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Li.Xiubo@freescale.com; X-OriginatorOrg: freescale.com X-Mailman-Approved-At: Tue, 16 Sep 2014 07:09:45 +0200 Cc: Xiubo Li <Li.Xiubo@freescale.com> Subject: [U-Boot] [PATCH 1/4] ARM: HYP/non-sec: add the pen address byte reverting support. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de |
diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S index 745670e..2683dac 100644 --- a/arch/arm/cpu/armv7/nonsec_virt.S +++ b/arch/arm/cpu/armv7/nonsec_virt.S @@ -191,6 +191,9 @@ ENTRY(smp_waitloop) wfi ldr r1, =CONFIG_SMP_PEN_ADDR @ load start address ldr r1, [r1] +#ifdef CONFIG_SOC_BIG_ENDIAN + rev r1, r1 +#endif cmp r0, r1 @ make sure we dont execute this code beq smp_waitloop @ again (due to a spurious wakeup) mov r0, r1
For some SoCs, the pen address may has different endianness with the CPUs, so this need the byte revertion for it, Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> --- arch/arm/cpu/armv7/nonsec_virt.S | 3 +++ 1 file changed, 3 insertions(+)