mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/8] mips: remove bare_init
@ 2020-02-18 15:39 Sascha Hauer
  2020-02-18 15:39 ` [PATCH 2/8] nios2: " Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sascha Hauer @ 2020-02-18 15:39 UTC (permalink / raw)
  To: Barebox List

bare_init is only meaningful when we initially only have parts of
the barebox binary available. This is not the case on MIPS, so remove
the unnecessary __bare_init attributes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/mips/boot/main_entry.c  | 2 +-
 arch/mips/lib/barebox.lds.S  | 3 ---
 arch/mips/lib/pbl.lds.S      | 3 ---
 arch/mips/pbl/zbarebox.lds.S | 3 ---
 4 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c
index 2c18bc81c3..dd8ab6a5b3 100644
--- a/arch/mips/boot/main_entry.c
+++ b/arch/mips/boot/main_entry.c
@@ -69,7 +69,7 @@ extern unsigned long mips_stack_top;
  *
  * @note The C environment isn't initialized yet
  */
-void __bare_init main_entry(void *fdt, u32 fdt_size)
+void main_entry(void *fdt, u32 fdt_size)
 {
 	unsigned long malloc_start, malloc_end;
 	/* clear the BSS first */
diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S
index c954df41f3..5992946af5 100644
--- a/arch/mips/lib/barebox.lds.S
+++ b/arch/mips/lib/barebox.lds.S
@@ -20,9 +20,6 @@ SECTIONS
 		_stext = .;
 		_text = .;
 		*(.text_entry*)
-		__bare_init_start = .;
-		*(.text_bare_init*)
-		__bare_init_end = .;
 		*(.text*)
 	}
 	BAREBOX_BARE_INIT_SIZE
diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S
index 75069b0c50..64cbd1f23f 100644
--- a/arch/mips/lib/pbl.lds.S
+++ b/arch/mips/lib/pbl.lds.S
@@ -23,9 +23,6 @@ SECTIONS
 		_stext = .;
 		_text = .;
 		*(.text_head_entry*)
-		__bare_init_start = .;
-		*(.text_bare_init*)
-		__bare_init_end = .;
 		*(.text*)
 	}
 
diff --git a/arch/mips/pbl/zbarebox.lds.S b/arch/mips/pbl/zbarebox.lds.S
index 04b5b8680f..dbea020d3f 100644
--- a/arch/mips/pbl/zbarebox.lds.S
+++ b/arch/mips/pbl/zbarebox.lds.S
@@ -20,9 +20,6 @@ SECTIONS
 		_stext = .;
 		_text = .;
 		*(.text_head_entry*)
-		__bare_init_start = .;
-		*(.text_bare_init*)
-		__bare_init_end = .;
 		*(.text*)
 	}
 
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-18 15:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 15:39 [PATCH 1/8] mips: remove bare_init Sascha Hauer
2020-02-18 15:39 ` [PATCH 2/8] nios2: " Sascha Hauer
2020-02-18 15:39 ` [PATCH 3/8] ARM: arm64: " Sascha Hauer
2020-02-18 15:39 ` [PATCH 4/8] x86: " Sascha Hauer
2020-02-18 15:39 ` [PATCH 5/8] ARM: remove unnecessary __bare_init attributes Sascha Hauer
2020-02-18 15:39 ` [PATCH 6/8] ARM: Use function specific sections in assembly functions Sascha Hauer
2020-02-18 15:39 ` [PATCH 7/8] Remove unused __BARE_INIT Sascha Hauer
2020-02-18 15:39 ` [PATCH 8/8] Put bare_init functions in separate sections Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox