feat: add kernel exception panic

This commit is contained in:
karina
2026-04-23 23:14:24 +04:00
parent f469da7e0b
commit 373ee00d04
5 changed files with 62 additions and 8 deletions
+3 -5
View File
@@ -1,10 +1,8 @@
#include <Arch/Exceptions.h>
#include <Arch/CPU.h>
#include <IO/Serial.h>
#include <OS/Panic.h>
void ExceptionsHandler(ExceptionsContext* context, ExceptionsType type) {
IOSerialPutString("Exception occurred");
while (1) {
CPUWaitForInterrupt();
}
void ExceptionsHandler(ExceptionsContext* frame, ExceptionsType type) {
OSPanicException(frame);
}