From fb4002d54b25ab70d46649a76bf536c67cb92bf4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 16 May 2025 20:07:43 -0400 Subject: kernel: Add cpu_halt_others() and harden panic() Ensure interrupts are disabled at the start of panic() to prevent any interrupts from further degrading the state of the system. Also adds a newline before "panic: " to clean up the logs. Signed-off-by: Ian Moffett --- sys/include/arch/amd64/cpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/arch/amd64/cpu.h') diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h index ce42416..dd753b7 100644 --- a/sys/include/arch/amd64/cpu.h +++ b/sys/include/arch/amd64/cpu.h @@ -49,6 +49,7 @@ struct cpu_info { }; __dead void cpu_halt_all(void); +void cpu_halt_others(void); void cpu_startup(struct cpu_info *ci); struct cpu_info *this_cpu(void); -- cgit v1.2.3