mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH] ARM: socfpga: drop unused Arria 10 barebox-arm-head.h
Date: Thu, 22 Aug 2024 13:54:20 +0200	[thread overview]
Message-ID: <20240822115420.1178987-1-a.fatoum@pengutronix.de> (raw)

From: Ahmad Fatoum <ahmad@a3f.at>

The file is unreferenced anywhere and it doesn't differ from the default
__barebox_arm_head anyway, except by two additional words with value
0x55555555, which shouldn't matter.

It thus seems that the file wasn't needed when it was first added and
it's surely not needed now as it has been unreferenced for more than a
year.

Fixes: d5c8bc3ff1a7 ("ARM: socfpga: add arria10 support")
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
 include/mach/socfpga/barebox-arm-head.h | 37 -------------------------
 1 file changed, 37 deletions(-)
 delete mode 100644 include/mach/socfpga/barebox-arm-head.h

diff --git a/include/mach/socfpga/barebox-arm-head.h b/include/mach/socfpga/barebox-arm-head.h
deleted file mode 100644
index eff05b0e41fd..000000000000
--- a/include/mach/socfpga/barebox-arm-head.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-static inline void __barebox_arm_head(void)
-{
-	__asm__ __volatile__ (
-#ifdef CONFIG_THUMB2_BAREBOX
-		".arm\n"
-		"adr r9, 1f + 1\n"
-		"bx r9\n"
-		".thumb\n"
-		"1:\n"
-		"bl 2f\n"
-		".rept 10\n"
-		"1: b 1b\n"
-		".endr\n"
-#else
-		"b 2f\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-		"1: b 1b\n"
-#endif
-		".asciz \"barebox\"\n"
-		".word _text\n"				/* text base. If copied there,
-							 * barebox can skip relocation
-							 */
-		".word _barebox_image_size\n"		/* image size to copy */
-
-		".rept 10\n"
-		".word 0x55555555\n"
-		".endr\n"
-		"2:\n"
-	);
-}
-- 
2.39.2




             reply	other threads:[~2024-08-22 11:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-22 11:54 Ahmad Fatoum [this message]
2024-08-23  8:04 ` Sascha Hauer
2024-08-26 11:06 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240822115420.1178987-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.trumtrar@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox