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/arch/aarch64/aarch64/machdep.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/arch/aarch64') diff --git a/sys/arch/aarch64/aarch64/machdep.c b/sys/arch/aarch64/aarch64/machdep.c index a29ad7e..7c21e62 100644 --- a/sys/arch/aarch64/aarch64/machdep.c +++ b/sys/arch/aarch64/aarch64/machdep.c @@ -41,6 +41,13 @@ cpu_startup(struct cpu_info *ci) return; } +void +cpu_halt_others(void) +{ + /* TODO: STUB */ + return; +} + void serial_init(void) { -- cgit v1.2.3