From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 02 Oct 2021 11:20:56 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mWbCS-0003BP-VF for lore@lore.pengutronix.de; Sat, 02 Oct 2021 11:20:56 +0200 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWbCS-0001vD-3u for lore@pengutronix.de; Sat, 02 Oct 2021 11:20:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:From:In-Reply-To:MIME-Version: References:Message-ID:Subject:Cc:To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=IuOC6/MYeoQmq7vZcaebBksiQIOvvfHR60etsCh1g24=; b=ylXEzS4EUfQ6WnAZWq5zWLKbEg 7z09ae5eU/bFjMtnI2ksSoP+QsC/MNoUIGuYFVQHLvu8ai8cN4LLzpg+nPuYOLK0zrD8jWjT6W1IB FOEqmhpCg1NmmvWeuwLXtt4EeNmgVxsxzDODeBcLHcjxIv7hfsKiFCiTixmn02y9ATmwSbVqYqzic 6vZmqrLGCREPXyX+BWA8wGswB+PHmuIUGEWGRmKTt1tTYACF9pz9RkVDd6Lztj/Gg4keTJXPX4C8m 63pn1MrU+IruTlL9fUyRkS8LojTs5K9nr7AagYpq3nf280V9Ku4YXA3JgzgdRv2zGtRmFRsVMoZPc oBDYiCxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWbBF-001zSf-NV; Sat, 02 Oct 2021 09:19:41 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWbBA-001zRl-RA for barebox@lists.infradead.org; Sat, 02 Oct 2021 09:19:38 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWbB9-0001gd-JX; Sat, 02 Oct 2021 11:19:35 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mWbB9-0001UF-Ag; Sat, 02 Oct 2021 11:19:35 +0200 Date: Sat, 2 Oct 2021 11:19:35 +0200 To: Ahmad Fatoum Cc: barebox@lists.infradead.org Message-ID: <20211002091935.GF28453@pengutronix.de> References: <20210916093514.21267-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210916093514.21267-1-a.fatoum@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:19:20 up 226 days, 12:43, 94 users, load average: 0.25, 0.20, 0.18 User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211002_021936_903132_DFAC03F0 X-CRM114-Status: GOOD ( 19.35 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:7c80:54:e::133 (failed) X-Broken-Reverse-DNS: no host name for IP address 2607:7c80:54:e::133 X-SA-Exim-Connect-IP: 2607:7c80:54:e::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,PTX_BROKEN_RDNS,RCVD_IN_DNSWL_MED,RDNS_NONE, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Subject: Re: [PATCH master] RISC-V: board-dt-2nd: move low level init into nonnaked function X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) On Thu, Sep 16, 2021 at 11:35:14AM +0200, Ahmad Fatoum wrote: > The generic DT image for RISC-V mimics a kernel image and specifies > a load offset that it expects to be honoured. The stack should then > grow down from the load address. This didn't work as intended though > with riscv64-linux-gnu-gcc (Debian 10.2.1-6), because of the entry > point's __naked attribute: local variables overwrote the first bytes > of the entry point. Fix this by using a noinline nonnaked function. > > Signed-off-by: Ahmad Fatoum > --- > arch/riscv/boot/board-dt-2nd.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox