From 130ef7a34df14a57097a273867bc2bb5816d5f49 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Apr 2024 20:41:44 -0400 Subject: kernel/amd64: machdep: Add cpu_halt_others() Halts all other processors except self Signed-off-by: Ian Moffett --- sys/include/arch/amd64/sysvec.h | 1 + sys/include/sys/machdep.h | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/include') diff --git a/sys/include/arch/amd64/sysvec.h b/sys/include/arch/amd64/sysvec.h index 81383ea..8feecb7 100644 --- a/sys/include/arch/amd64/sysvec.h +++ b/sys/include/arch/amd64/sysvec.h @@ -41,6 +41,7 @@ typedef enum { SYSVEC_LAPIC_TIMER = 0x21, /* Local APIC timer */ SYSVEC_IPI, /* IPI vector */ + SYSVEC_HLT, /* Halt vector */ /* -- XXX: New vectors go above -- */ NSYSVEC_BASE, /* Non-system vector base */ diff --git a/sys/include/sys/machdep.h b/sys/include/sys/machdep.h index 811f6be..99ebbac 100644 --- a/sys/include/sys/machdep.h +++ b/sys/include/sys/machdep.h @@ -49,6 +49,7 @@ __weak void chips_init(void); __weak void pre_init(void); __weak void serial_dbgch(char c); __weak void backtrace(void); +__weak void cpu_halt_others(void); #endif /* defined(_KERNEL) */ #endif /* !_SYS_MACHDEP_H_ */ -- cgit v1.2.3