...
This commit is contained in:
20
src/arch/x86_64/interrupts/isr.c
Normal file
20
src/arch/x86_64/interrupts/isr.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "isr.h"
|
||||
#include "exceptions.h"
|
||||
#include "irq.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void handle_isr(const isr_frame_t* frame)
|
||||
{
|
||||
if (frame->int_no < 32)
|
||||
{
|
||||
handle_exception(frame);
|
||||
}
|
||||
else if (frame->int_no < 48)
|
||||
{
|
||||
handle_irq(frame);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("interrupt[%d]: not implemented\n", frame->int_no);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user