From patchwork Wed Jul 10 01:56:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuyuki Kobayashi X-Patchwork-Id: 2825496 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8F7EB9F9CF for ; Wed, 10 Jul 2013 02:04:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B259820119 for ; Wed, 10 Jul 2013 02:04:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40E4E20115 for ; Wed, 10 Jul 2013 02:04:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753952Ab3GJCEL (ORCPT ); Tue, 9 Jul 2013 22:04:11 -0400 Received: from fbvrgw.firstserver.ne.jp ([164.46.1.51]:50588 "EHLO fbvrgw.firstserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753879Ab3GJCEL (ORCPT ); Tue, 9 Jul 2013 22:04:11 -0400 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Jul 2013 22:04:10 EDT Received: from vrgw9.firstserver.ne.jp (vrgw9.firstserver.ne.jp [164.46.1.107]) by fbvrgw.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id r6A20QSu011597 for ; Wed, 10 Jul 2013 11:00:26 +0900 (envelope-from koba@kmckk.co.jp) Received: from fvrsp081.firstserver.ne.jp (fvrsp081.firstserver.ne.jp [203.183.240.3]) by vrgw9.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id r6A1vgsR012101; Wed, 10 Jul 2013 10:57:42 +0900 (envelope-from koba@kmckk.co.jp) Received: from 203.137.25.97 (203.137.25.97) by fvrsp081.firstserver.ne.jp (F-Secure/virusgw_smtp/407/fvrsp081.firstserver.ne.jp); Wed, 10 Jul 2013 10:57:42 +0900 (JST) X-Virus-Status: clean(F-Secure/virusgw_smtp/407/fvrsp081.firstserver.ne.jp) Received: from localhost (58-188-103-12f2.kns1.eonet.ne.jp [58.188.103.12]) (authenticated (0 bits)) by mail.kmckk.co.jp (8.14.3/8.11.3) with ESMTP id r6A1vgB8023292; Wed, 10 Jul 2013 10:57:42 +0900 From: Tetsuyuki Kobayashi To: horms@verge.net.au, magnus.damm@gmail.com Cc: linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tetsuyuki Kobayashi Subject: [PATCH 2/3] ARM: shmobile: Force ARM mode to compile reset vector for secondary CPUs Date: Wed, 10 Jul 2013 10:56:36 +0900 Message-Id: <1373421397-1786-3-git-send-email-koba@kmckk.co.jp> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1373421397-1786-1-git-send-email-koba@kmckk.co.jp> References: <1373421397-1786-1-git-send-email-koba@kmckk.co.jp> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, FSL_HELO_BARE_IP_2, RCVD_IN_DNSWL_HI, RCVD_NUMERIC_HELO, 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 Instructions start from boot vector must be ARM mode. This patch specify ARM mode explicitly and use 'bx' instruction to be able to change to Thumb mode. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/mach-shmobile/headsmp.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/headsmp.S b/arch/arm/mach-shmobile/headsmp.S index 559d1ce..afed58e 100644 --- a/arch/arm/mach-shmobile/headsmp.S +++ b/arch/arm/mach-shmobile/headsmp.S @@ -26,10 +26,13 @@ ENDPROC(shmobile_invalidate_start) * This will be mapped at address 0 by SBAR register. * We need _long_ jump to the physical address. */ + .arm .align 12 ENTRY(shmobile_boot_vector) ldr r0, 2f - ldr pc, 1f + ldr r1, 1f + bx r1 + ENDPROC(shmobile_boot_vector) .globl shmobile_boot_fn