Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1459C77B6C for ; Thu, 13 Apr 2023 06:21:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E50285E00; Thu, 13 Apr 2023 08:20:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0E20E85DBB; Thu, 13 Apr 2023 08:20:44 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3864B85D77 for ; Thu, 13 Apr 2023 08:20:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp73t1681366828tnc5jma3 Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 13 Apr 2023 14:20:27 +0800 (CST) X-QQ-SSF: 01200000000000D0F000000A0000000 X-QQ-FEAT: yHYyvEYBWf0129qhbEkCWb3GTu2FXchTeo+yXBR5m+DX8P5gNWAbBIpo8eAgv ExBzIYq0bbnpVYltaYIlTSyMR+AwY2aiyHqLkOIOAUgi22fF399zWoQ8VbaLY5WAeBywEL7 UN3RUEph9ItPrdJYVmEHVq5tSBLhgj5CS0hNfC+82/QFAr4RMgLBbX6BXATIkrW9m1hwzqs LPUnm7/ACo+6mvhjlckGQIfdOZltZjAWilEGfnXm8N8bLe32vdOpFrZrZiwW3Ky8x7M6HwC xsqitqmZUkRf4uxGcGeGZ1a0OeVTTPpG8nfnQt+CPXTqdXbCwWaKDEZRs3mO8u4+OUNzSrU y373XOh60kRvJus7pXXigTB/BPq5w== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5968300874103347690 From: Bin Meng To: u-boot@lists.denx.de Cc: Leo , Nikita Shubin , Rick Chen Subject: [PATCH v2 7/9] riscv: Avoid updating the link register Date: Thu, 13 Apr 2023 14:20:06 +0800 Message-Id: <20230413062008.981238-7-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230413062008.981238-1-bmeng@tinylab.org> References: <20230413062008.981238-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz7a-0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean board_init_r does not return for U-Boot SPL hence there is no need to update the link register when jumping to board_init_r. Signed-off-by: Bin Meng --- Changes in v2: - new patch: "riscv: Avoid updating the link register" arch/riscv/cpu/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index c09d1cb412..8cf25bb14a 100644 --- a/arch/riscv/cpu/start.S +++ b/arch/riscv/cpu/start.S @@ -250,7 +250,7 @@ spl_secondary_hart_stack_gd_setup: spl_call_board_init_r: mv a0, zero mv a1, zero - jal board_init_r + j board_init_r #endif /* -- 2.34.1