Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp178563rdb; Tue, 5 Dec 2023 02:13:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEa2MJugyevkSOKHqQ4/1v3H/ZCyQq3ro2U5mOQE2FoN5fqOQG5OnEziyGf84MSPr3dUsHN X-Received: by 2002:a17:90a:450e:b0:286:6cc0:886a with SMTP id u14-20020a17090a450e00b002866cc0886amr609725pjg.87.1701771209393; Tue, 05 Dec 2023 02:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701771209; cv=none; d=google.com; s=arc-20160816; b=nH0LGSLrWKBwPtuTj2hKY4LaU10RywkjvNXcHpLuIuMRgAaLQhbs9J9oGOOeA7eMDB ng5PSHuQW8n653wNasXZwlsvs56tFu5mLbt5P0dbklKf0ZWn8IJoLBe62BqffPcnvGpW +YU8LTC5wBmUb3lJdWSGn/Ixj0Qmqq/AE7kHDN1TKaZaFEwhfOumpaU6T0EJqLCS39eu fKMJTA9wXj+oO1z5s8t0/bM+TXDsPn+JrWO2QFwIi3yuMu3Mej8bnNhHvhbrt8vG1fI0 FdYPr/ivrp5mSmz1MiGP4I2/zoytsEOVJ3NtyiL7C1znBQzWHSCz6BkxqP79eDoEcwmO Rl6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ReslVNLPoXe76mNqX7qcvAIQqA88eN/h6w6Zg2TaLdU=; fh=S4scCjmGHuTpFNsRpx5F7zvdPnZW78Fse4yFoJp+Y6U=; b=01c4CUKOJgl4/3tHCnDGNIrS5naZl5foeR1dxy4FrWd//cyVTd7tPczq4XbSu3eGe2 1zZGX0INsyeGox/khDRldCb2jlJOG/sazkEp2D2SoNm6k2af8ZO/HDdgyZyOCoY0/8Bl n4PQFpznzh0WdJJHeiQGoOyPX8ys7v9WQ8k2SgP+2XKiKxVZdwiS7VOp/UctFM4jXZMo YKEX4xsNTBe2DF7O4SYMBnBL2+mq461qk0lZU3UauK+IatNTppjgdLETpYeQwAO/luRl wSj4RP1IpSNbDnKaMSncY9hhJ12NnyGeMburn6SSaRAfv9+9BiuRVR/ABoj64+X5LoPM sbuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s13-20020a17090aad8d00b002868d17b86esi1305009pjq.107.2023.12.05.02.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 02:13:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 80C7C801B9FE; Tue, 5 Dec 2023 02:13:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344936AbjLEKMy (ORCPT + 99 others); Tue, 5 Dec 2023 05:12:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344948AbjLEJza (ORCPT ); Tue, 5 Dec 2023 04:55:30 -0500 Received: from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp [153.127.30.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 652FB182; Tue, 5 Dec 2023 01:55:36 -0800 (PST) Received: from SIOS1075.ysato.name (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by sakura.ysato.name (Postfix) with ESMTPSA id CF91B1C01B1; Tue, 5 Dec 2023 18:46:02 +0900 (JST) From: Yoshinori Sato To: linux-sh@vger.kernel.org Cc: Yoshinori Sato , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Randy Dunlap , Arnd Bergmann , Hyeonggon Yoo <42.hyeyoo@gmail.com>, David Rientjes , Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Stephen Rothwell , Guo Ren , Javier Martinez Canillas , Azeem Shaikh , Palmer Dabbelt , Bin Meng , Max Filippov , Tom Rix , Herve Codina , Jacky Huang , Lukas Bulwahn , Jonathan Corbet , Biju Das , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sam Ravnborg , Michael Karcher , Sergey Shtylyov , Laurent Pinchart , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [DO NOT MERGE v5 01/37] sh: passing FDT address to kernel startup. Date: Tue, 5 Dec 2023 18:45:20 +0900 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 02:13:22 -0800 (PST) R4 is caller saved in SH ABI. Save it so it doesn't get corrupted until it's needed for initialization. Signed-off-by: Yoshinori Sato --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot/compressed/head_32.S index 7bb168133dbb..6be59851122e 100644 --- a/arch/sh/boot/compressed/head_32.S +++ b/arch/sh/boot/compressed/head_32.S @@ -15,7 +15,8 @@ startup: /* Load initial status register */ mov.l init_sr, r1 ldc r1, sr - + /* Save FDT address */ + mov r4, r13 /* Move myself to proper location if necessary */ mova 1f, r0 mov.l 1f, r2 @@ -84,7 +85,7 @@ l1: /* Jump to the start of the decompressed kernel */ mov.l kernel_start_addr, r0 jmp @r0 - nop + mov r13, r4 .align 2 bss_start_addr: -- 2.39.2