diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-26 23:52:31 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-26 23:52:31 -0400 |
commit | 8f7f2ad0d9a41dd81a1091346e88a0cb47433452 (patch) | |
tree | 614b249b7125633662e6d1504245a9e35415a05c /src/sys/include | |
parent | 01dae750edc685b1a0c49c6b27fd5466b0f0ac31 (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/sys/cpuvar.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -91,6 +91,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 * * [MD] |