diff options
Diffstat (limited to 'src/libc/intr.c')
-rw-r--r-- | src/libc/intr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libc/intr.c b/src/libc/intr.c index cdefc2f..c44a90e 100644 --- a/src/libc/intr.c +++ b/src/libc/intr.c @@ -1,13 +1,14 @@ #include <camellia/intr.h> +#include <stdio.h> #include <stdlib.h> -static void intr_null(void) { } +static void intr_null(struct intr_data *) { } -extern void (*volatile _intr)(void); -void intr_set(void (*fn)(void)) { +extern void (*volatile _intr)(struct intr_data *); +void intr_set(void (*fn)(struct intr_data *)) { _intr = fn ? fn : intr_null; } -void intr_default(void) { +void intr_default(struct intr_data *intr) { exit(-1); } |