Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp57812lqe; Wed, 3 Apr 2024 22:18:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVp9xqhnXJ0bkRPOLtrIU9LsKGPAthkxlqmjVPDrtojKkC8zt79AoxDNICY5GDLSgKQrdam7DCwXcqZFGmQH7uC+WEdfc0HFUuwg7+Orw== X-Google-Smtp-Source: AGHT+IFO5gX7ekyxynGCu4OloV5uVCIxUFQQLYB1/D+GW83gFCqcuxHb4HBjxEaLVdpvVVwWdO7v X-Received: by 2002:a17:906:ce2f:b0:a46:ed72:6bb4 with SMTP id sd15-20020a170906ce2f00b00a46ed726bb4mr694572ejb.72.1712207888962; Wed, 03 Apr 2024 22:18:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712207888; cv=pass; d=google.com; s=arc-20160816; b=SyqQtoQaTWe4819udyuwE84HvmF9WeX2Crj62xFRYdf1Z4JsUeZpdH4X1+2SlEbkZU o8I9s+4YZouQ1OvWSLqUvfmj2dzw6u2KfOYOgn2HgPnitmMmkd89PP8mm8wdoVk9a9sg NK4Ciyi4n+rKYAtg8GPzPvaZcwiNGaZXPny1PKtYe48uc4IoqULBMiNbih2wKOeOCLwQ /O4pTMG46IqphnQJLJOoFc9ov57PG4OaQo67fsfq53giKXs7/EzvysVA9FYNnr+6c5tD RPd8QvRteDePsokxOu1zCjIegdo0c4ldwYBxdk7x4TbYb7bB3B5fKzHFsLj1qL566gNY +v1g== 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=BmV2nmxjgR7WyWDKi8KOfmMBT9RrvQCDl7i3S+ELMXiPp29wu1SxBF28XcEg6EPZTv 6/Tb7k+vG9ymx77SZ8ad+hjDOi+vWLfwn4MWXFRKLyvVXxF5UP1kC8YQot2ALWnw/zVH 5HvOTZNqSjI3DXa3nFhLrBwGuPmt3mh4sk3kIhPcPpV1NimZk1DILJiJR7pohu+bEn1b b7Xzc26rXNVwXNqe5Aw1kz64X+AT8aZGvoIyKBXyyGSUqmXFnNnnPCQgStIEG8WbhFb3 XGF+4THp+1WhJEy7XFNDs7s6bS0q4XPioLz3IQyskS1xaalvKLrYbEkM3hvrMUwvHHN5 /95Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-130912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130912-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id go11-20020a1709070d8b00b00a4e932afd58si1989104ejc.811.2024.04.03.22.18.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 22:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-130912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130912-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 E47331F2456C for ; Thu, 4 Apr 2024 05:17:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FFDF548E5; Thu, 4 Apr 2024 05:14:59 +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 49B913F9ED; Thu, 4 Apr 2024 05:14:56 +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=1712207699; cv=none; b=Y8GgnwApw6DGx1ltaPDTsxwwD1AO6tjRhA2Ezbqh8xNWM3cFeqNfyI8XJ0ZKWI+W/nKCMI+3WbNn1dK7+MvULuulAMsOb172mz+Le9UGzX0IHCgy9e1gV4HtJfHLvbrOt9uXsxK1Ir/nq/dNshY6IgxK4DsH601x8tCC0vvG6Ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712207699; c=relaxed/simple; bh=X5xhUmYdUi/YHxJqfjY+z9LAkIgLaCslllhJ8YzjKP4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JXvvCORTBDrvtrPG7EvJKlLmCVNUAyg45a8X5eK7dYQaLl3kREvBOi+1qi6319O6NxZNm45p7DkXH4JiuS+w7IPW8n682V0TCksecXPINLD29e9f1F42a8VuX0vTi1nfrrzJDwk+OrsDjDU1FwyNgVu+3XfQ9osavS3NpFEC/bM= 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 5AF501C0BD1; Thu, 4 Apr 2024 14:14:54 +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: [RESEND v7 01/37] sh: passing FDT address to kernel startup. Date: Thu, 4 Apr 2024 14:14:12 +0900 Message-Id: <58ead9bb7def6e12a46dd7ad2fee716dc17e44f7.1712207606.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