projects
/
3sys
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5ce0009a287421840326867b875f352cb458b44c
[3sys]
/
sys1
/
kern
/
src
/
intr.c
1
#include "intr.h"
2
#include "desc.h"
3
4
void set_idt(void *ptr, uint16_t lim);
5
6
#define NUM_INTR 256
7
static struct desc idt[NUM_INTR] __attribute__((aligned(8)));
8
9
void intr_init(void)
10
{
11
set_idt(idt, sizeof idt - 1);
12
}
13
14
void intr_handler(int err, int num)
15
{
16
}
17