summaryrefslogtreecommitdiff
path: root/sys/arch/aarch64
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-16 20:07:43 -0400
committerIan Moffett <ian@osmora.org>2025-05-16 20:19:29 -0400
commitfb4002d54b25ab70d46649a76bf536c67cb92bf4 (patch)
tree693c650a3af6c21f828b7f3df3876356a749b7a9 /sys/arch/aarch64
parent9e83d053812096b795fb8b511c49a65e4ad18a44 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/arch/aarch64')
-rw-r--r--sys/arch/aarch64/aarch64/machdep.c7
1 files changed, 7 insertions, 0 deletions
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
@@ -42,6 +42,13 @@ cpu_startup(struct cpu_info *ci)
}
void
+cpu_halt_others(void)
+{
+ /* TODO: STUB */
+ return;
+}
+
+void
serial_init(void)
{
/* TODO: STUB */