Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp55582lqe; Wed, 3 Apr 2024 22:11:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSGEJ37Wzeyf0Giht1zrIBhNkzbpmJPZLh4d25N1UMqnhoLPUsUCq0SBHOgMEyESxYyUgJhwHz1uoO2N6pWlCeYxoDRGG2T9nuLqngSQ== X-Google-Smtp-Source: AGHT+IFw1JE/oyEhe8iZzjWutD8IHmA6odynbVmdo9p/znWS5nuPmAklWv6OYEimE5VzMpFsvXVY X-Received: by 2002:a17:907:7e96:b0:a51:8abb:4d03 with SMTP id qb22-20020a1709077e9600b00a518abb4d03mr559673ejc.19.1712207461840; Wed, 03 Apr 2024 22:11:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712207461; cv=pass; d=google.com; s=arc-20160816; b=ZAMNoOfnqGZdSjVASlNMtsC1/RpLJk1R3ickqZGq76JSRTHEVOtBUKnkEelmsFKXSK HJJcPGc9DVGXfChgsr04yPiDAoak3avCKMjTPFAn0i4zSavB/5Fm4/f1uOyWAbP//hI6 0x5UXoshjjG//tEvJueqe1gbptScV1ii+jUO7VPWrXd7G97ve0az4Pci3C/lmBcTaZcH FomvgJ5OY9YuivTAztq3vMNa7NvYGllA93YBDKtJaoOF7MV38uu1F3xpsoc02px6s0Y8 52UzbNLAVDYlM/r09aAQTVKYlBEQyqzecSm1Iq4gyJtWIEKCIJcSnJr1MsmSnPUtL4cD fQhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=wILcK1lFVl6bey9cbwY5Ll0xXm5mKUm9E3IS+JweTrE=; fh=v4XjIS8ZnkfRSzpdvZ0kX2qBiNaW+cViNlbs+XMLZ44=; b=tMHLKkw6Z4U9Ot93/mT/+XWOLc1ol4vUs7SRM79hpotwCv1qroNFVPMtiEDdYnj18n o4PghFo5j3EyfuPyK1A3bs9/zoOu/YkelKwKvkNk9ypl8BEKN5/fHkBc0xDYBKVI6EHE litaSWU84axJXmyjcxM1lYAob0Ya4gp7UDYLdoBVr2dK+fuLIZ9q/3jgELedYs30HV8H dUHe3zYc9+2sapvyD/y0fUGlQvwZsMkomL01Z6lEi/1ZCXP5Vkv/DjK7JoOPJbbsFIkA +51OJgRit8/K38DMvWcXwrkrjFf/QQOsbrlFR9VAVY2GfwCUcTAMw7TYfGaRVpZ6iRa8 EWFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-130895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130895-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qw17-20020a1709066a1100b00a517bd5ac77si778701ejc.485.2024.04.03.22.11.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 22:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-130895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130895-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 27DC51F2775E for ; Thu, 4 Apr 2024 05:11:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E931C4C634; Thu, 4 Apr 2024 05:10:30 +0000 (UTC) Received: from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp [153.127.30.23]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF98B286A6; Thu, 4 Apr 2024 05:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=153.127.30.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712207430; cv=none; b=k/UaKLjhHvUJCkGFKVDQsq5roFjamacuGXV/4tB+HQ/XjmAIljIZ7v58x1BWQ8p8NlEiSQh9JkzEVUd3UAgBreyP2O8e2I7n1yh0Nr96tbbXrAKhUQ7N8T+xf7KoxuIYhOGA9F+zsOfFIBWlPATwHA0DDL7VoBgyXI6YvnsjZPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712207430; c=relaxed/simple; bh=X5xhUmYdUi/YHxJqfjY+z9LAkIgLaCslllhJ8YzjKP4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iGLkFxzXHQD7pmXC80f6z6wZuKqd+9U/ZjWus38ocAb08ghp3Os6C6QwQUiuK0cuLPKb0J3po0WhWaXVUHisz+MN3L49DgmAVp6YRBSlHFvFXDHXRLRoQk5cHsYW6EqWyFO/WqRNuYJFukQeTh/mWXIAWlQwa2GcbeZZIpUswOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp; spf=fail smtp.mailfrom=users.sourceforge.jp; arc=none smtp.client-ip=153.127.30.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=users.sourceforge.jp Received: from SIOS1075.ysato.name (al128006.dynamic.ppp.asahi-net.or.jp [111.234.128.6]) by sakura.ysato.name (Postfix) with ESMTPSA id C98F21C022E; Thu, 4 Apr 2024 14:00:36 +0900 (JST) From: Yoshinori Sato To: linux-sh@vger.kernel.org Cc: Yoshinori Sato , Damien Le Moal , Niklas Cassel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Shawn Guo , Sebastian Reichel , Chris Morgan , Linus Walleij , Arnd Bergmann , David Rientjes , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Kefeng Wang , Stephen Rothwell , Javier Martinez Canillas , Guo Ren , Azeem Shaikh , Max Filippov , Jonathan Corbet , Jacky Huang , Herve Codina , Manikanta Guntupalli , Anup Patel , Biju Das , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sam Ravnborg , 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: [PATCH v7 01/37] sh: passing FDT address to kernel startup. Date: Thu, 4 Apr 2024 13:59:26 +0900 Message-Id: <58ead9bb7def6e12a46dd7ad2fee716dc17e44f7.1712205900.git.ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Geert Uytterhoeven --- 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