feat: add kernel exception panic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user