From 67f9d3c5e58f1a958a2b1b7a102a71e3ce252fc4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 10 Jul 2024 20:59:37 -0400 Subject: 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 --- sys/include/arch/amd64/cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include') 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); -- cgit v1.2.3