blob: 12e6f4c304922974aa538af417de75a9ad00543e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <camellia/intr.h>
#include <stdio.h>
#include <stdlib.h>
static void intr_null(struct intr_data *) { }
extern void (*volatile _intr)(struct intr_data *);
void intr_set(void (*fn)(struct intr_data *)) {
_intr = fn ? fn : intr_null;
}
void intr_default(struct intr_data *) {
exit(-1);
}
|