20 lines
356 B
C
20 lines
356 B
C
#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);
|
|
}
|
|
} |