#include #include #include 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); }