From patchwork Tue May 7 12:18:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1096316 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44yzJb679nz9sB8 for ; Tue, 7 May 2019 22:22:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7EAAEC21DED; Tue, 7 May 2019 12:21:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8F04BC21E2C; Tue, 7 May 2019 12:19:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0FB82C21E7D; Tue, 7 May 2019 12:19:15 +0000 (UTC) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lists.denx.de (Postfix) with ESMTPS id 4B3C9C21E30 for ; Tue, 7 May 2019 12:19:12 +0000 (UTC) X-Originating-IP: 90.88.149.145 Received: from localhost.localdomain (aaubervilliers-681-1-29-145.w90-88.abo.wanadoo.fr [90.88.149.145]) (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 236BF20007; Tue, 7 May 2019 12:19:10 +0000 (UTC) From: Miquel Raynal To: Albert Aribaud Date: Tue, 7 May 2019 14:18:53 +0200 Message-Id: <20190507121854.18575-12-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190507121854.18575-1-miquel.raynal@bootlin.com> References: <20190507121854.18575-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Cc: Miquel Raynal , u-boot@lists.denx.de, Stefan Roese , Thomas Petazzoni , Tom Rini Subject: [U-Boot] [PATCH 11/12] arm: spear: Do not link the _main branch X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The _main call is not supposed to return at all: don't link the branch. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese --- arch/arm/cpu/arm926ejs/spear/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/spear/start.S b/arch/arm/cpu/arm926ejs/spear/start.S index 2cf854eb74..9ac96291b7 100644 --- a/arch/arm/cpu/arm926ejs/spear/start.S +++ b/arch/arm/cpu/arm926ejs/spear/start.S @@ -57,8 +57,9 @@ reset: /* * Go setup Memory and board specific bits prior to relocation. + * This call is not supposed to return. */ - bl _main /* _main will call board_init_f */ + b _main /* _main will call board_init_f */ back_to_bootrom: pop {r0-r12,pc}