summaryrefslogtreecommitdiff
path: root/src/libc/intr.c
blob: c44a90e4f8fafe694e0fe90096c0d67cf3c585ff (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 *intr) {
	exit(-1);
}