From 8f7f2ad0d9a41dd81a1091346e88a0cb47433452 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 26 Sep 2025 23:52:31 -0400 Subject: kern/amd64: cpu: Add cpu_halt_others() function Add function to halt all processor cores on the machine excluding self. This may be used for emergency conditions on the system. Signed-off-by: Ian Moffett --- src/sys/include/sys/cpuvar.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sys/include') diff --git a/src/sys/include/sys/cpuvar.h b/src/sys/include/sys/cpuvar.h index e4f3cd1..fa2462d 100644 --- a/src/sys/include/sys/cpuvar.h +++ b/src/sys/include/sys/cpuvar.h @@ -90,6 +90,14 @@ struct core_arbiter { */ struct pcore *cpu_sched(void); +/* + * Halt all processor cores on the machine excluding + * self + * + * [MD] + */ +void cpu_halt_others(void); + /* * Configure a processor core on the system * -- cgit v1.2.3