mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: panic
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
#include <logging.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <arch/context.h>
|
||||
#include <panic.h>
|
||||
|
||||
void interrupt_isr(int vec, context_t *ctx) {
|
||||
isr_t *isr = &_cpu()->isr[vec];
|
||||
__assert(isr->func);
|
||||
if (isr->func == NULL)
|
||||
_panic("Unregistered interrupt", ctx);
|
||||
|
||||
// TODO ipl check
|
||||
isr->func(isr, ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user