diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-10 20:59:37 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-10 21:02:56 -0400 |
commit | 67f9d3c5e58f1a958a2b1b7a102a71e3ce252fc4 (patch) | |
tree | 108fbc812dd0acd00005e025faf2be9831f95100 /sys/include | |
parent | d243e9b36fe2bf8e9551cc6677aaa2747604fcfa (diff) |
kernel/amd64: reboot: Halt all with REBOOT_HALT
This commit changes how reboot() handles REBOOT_HALT. Now instead of one
core being halted, all cores will be halted through an IPI to a halt
vector.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/arch/amd64/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h index 2ce363c..37f28cb 100644 --- a/sys/include/arch/amd64/cpu.h +++ b/sys/include/arch/amd64/cpu.h @@ -45,7 +45,9 @@ struct cpu_info { struct cpu_info *self; }; +__dead void cpu_halt_all(void); void cpu_startup(struct cpu_info *ci); + struct cpu_info *this_cpu(void); void mp_bootstrap_aps(struct cpu_info *ci); |