aboutsummaryrefslogtreecommitdiff
path: root/src/isr.c
blob: c94d37e5532ec5094b87d493152528aeb4dc34b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Interrupt Service Routines
 */

#include <idt.h>
#include <stdio.h>
#include <sys/control.h>

__attribute__((interrupt)) void
abort_handler(struct interrupt_frame *frame)
{
  printf("abort\n");
  abort();
}

__attribute__((interrupt)) void
interrupt_handler(struct interrupt_frame *frame)
{
  printf("interrupt\n");
  abort();
}

__attribute__((interrupt)) void
interrupt_handler_e(struct interrupt_frame *frame, uint32_t error)
{
  printf("interrupt\n");
  abort();
}

__attribute__((interrupt)) void
syscall_handler(struct interrupt_frame *frame)
{
  printf("interrupt\n");
  abort();
}