git: 0c9b413e1a73 - stable/12 - mips/malta: Prefer _start over _locore for entry point symbol
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Dec 2024 21:25:07 UTC
The branch stable/12 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=0c9b413e1a7340452edd52332659929f860c5c20
commit 0c9b413e1a7340452edd52332659929f860c5c20
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:20:32 +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.
(cherry picked from commit e32b14ef10a7b0c3130ead9e676c8e6f261f0b69)
---
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 efdadae0952d..fba220cd1cb4 100644
--- a/sys/mips/malta/malta_mp.c
+++ b/sys/mips/malta/malta_mp.c
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
#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)
@@ -243,7 +243,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);