mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
Panic and interrupts
Added a basic kernel panic function and interrupt support for x86_64 (mostly for exception handling)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <arch/isr.h>
|
||||
#include <arch/panic.h>
|
||||
|
||||
void isr_general(void*){
|
||||
_panic("Unhandled interrupt");
|
||||
asm("hlt");
|
||||
}
|
||||
|
||||
void isr_except(void*){
|
||||
_panic("CPU Exception");
|
||||
asm("hlt;");
|
||||
}
|
||||
|
||||
void isr_pagefault(void*){
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user