mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
panic: disable interrupts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <panic.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <printf.h>
|
||||
#include <kernel/interrupt.h>
|
||||
|
||||
__attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
|
||||
printf("Oops.\n");
|
||||
@@ -11,5 +12,6 @@ __attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
|
||||
if (ctx)
|
||||
PRINT_CTX(ctx);
|
||||
|
||||
interrupt_set(false);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user