[rtems commit] bsps/riscv: Use start data for object

Sebastian Huber sebh at rtems.org
Fri Nov 4 12:50:13 UTC 2022


Module:    rtems
Branch:    master
Commit:    b4ffaa7cdcce4fedb857f6b8342301f8dde65c78
Changeset: http://git.rtems.org/rtems/commit/?id=b4ffaa7cdcce4fedb857f6b8342301f8dde65c78

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov  4 13:47:45 2022 +0100

bsps/riscv: Use start data for object

Maybe this helps to ensure that the object is properly aligned.

Update #4658.

---

 bsps/riscv/shared/start/start.S | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bsps/riscv/shared/start/start.S b/bsps/riscv/shared/start/start.S
index 0b9c96c5a2..34e1839ca1 100644
--- a/bsps/riscv/shared/start/start.S
+++ b/bsps/riscv/shared/start/start.S
@@ -131,9 +131,15 @@ SYM(_start):
 	mv	a0, s1
 	call	bsp_start_on_secondary_processor
 
+	.section	.bsp_start_data, "aw"
+
+	.type	.Lsecondary_processor_go, @object
+
 #if __riscv_xlen == 32
+	.size	.Lsecondary_processor_go, 4
 	.align	2
 #elif __riscv_xlen == 64
+	.size	.Lsecondary_processor_go, 8
 	.align	3
 #endif
 



More information about the vc mailing list