diff options
Diffstat (limited to 'src/libc/intr.c')
-rw-r--r-- | src/libc/intr.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libc/intr.c b/src/libc/intr.c new file mode 100644 index 0000000..cdefc2f --- /dev/null +++ b/src/libc/intr.c @@ -0,0 +1,13 @@ +#include <camellia/intr.h> +#include <stdlib.h> + +static void intr_null(void) { } + +extern void (*volatile _intr)(void); +void intr_set(void (*fn)(void)) { + _intr = fn ? fn : intr_null; +} + +void intr_default(void) { + exit(-1); +} |