blob: b89ecd27a5726ff83d2df9a644db5301aa86fb06 (
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
36
37
38
|
/*
* Interrupt Service Routines
*/
#include <idt.h>
#include <stdio.h>
#include <sys/control.h>
__attribute__((interrupt)) void
abort_handler(struct interrupt_frame *frame)
{
printf("system abort\n");
printf("ip: %x cs=%x\n", frame->ip, frame->cs);
printf("sp: %x ss=%x\n", frame->sp, frame->ss);
printf("flags: %x\n", frame->flags);
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();
}
|