git: e32b14ef10a7 - stable/13 - mips/malta: Prefer _start over _locore for entry point symbol

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Thu, 12 Dec 2024 21:25:03 UTC
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=e32b14ef10a7b0c3130ead9e676c8e6f261f0b69

commit e32b14ef10a7b0c3130ead9e676c8e6f261f0b69
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2024-12-12 21:19:04 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2024-12-12 21:19:04 +0000

    mips/malta: Prefer _start over _locore for entry point symbol
    
    These are aliases, but it's probably nicer to use the same symbol as we
    use for the actual ELF entry point.
    
    This is a direct commit to stable/13 as mips no longer exists in main.
---
 sys/mips/malta/malta_mp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/mips/malta/malta_mp.c b/sys/mips/malta/malta_mp.c
index fe284501dffb..e88b5d9f0f46 100644
--- a/sys/mips/malta/malta_mp.c
+++ b/sys/mips/malta/malta_mp.c
@@ -44,7 +44,7 @@
 #include <machine/md_var.h>
 #include <machine/smp.h>
 
-void	_locore(__register_t a0, __register_t a1,  __register_t a2,
+void	_start(__register_t a0, __register_t a1,  __register_t a2,
 	    __register_t a3);
 
 #define	VPECONF0_VPA	(1 << 0)
@@ -239,7 +239,7 @@ platform_start_ap(int cpuid)
 	set_thread_context(cpuid);
 
 	/* Set entry point */
-	mttc0(2, 3, (register_t)&_locore);
+	mttc0(2, 3, (register_t)&_start);
 
 	/* Enable thread */
 	reg = mftc0(2, 1);