diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-30 20:41:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-30 20:41:44 -0400 |
commit | 130ef7a34df14a57097a273867bc2bb5816d5f49 (patch) | |
tree | e4e33b29b2e713e794ed1caefcc0af13d3a6000a /sys/include | |
parent | 1586c50040f6d40630a0c9215575190103c4270f (diff) |
kernel/amd64: machdep: Add cpu_halt_others()
Halts all other processors except self
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/arch/amd64/sysvec.h | 1 | ||||
-rw-r--r-- | sys/include/sys/machdep.h | 1 |
2 files changed, 2 insertions, 0 deletions
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_ */ |