Merged in MorphOS-specific improvements from MorphOS team.
[AROS.git] / rom / kernel / kernel_interrupts.h
blobeb61b1cbe12d68d2c35756725ead2d0b111981ce
1 #include <inttypes.h>
3 /*
4 * Internal definitions. Needed only if you replace some related function.
5 */
6 struct IntrNode
8 struct MinNode in_Node;
9 void *in_Handler;
10 void *in_HandlerData;
11 void *in_HandlerData2;
12 uint8_t in_type;
13 uint8_t in_nr;
16 enum intr_types
18 it_exception = 0xe0,
19 it_interrupt = 0xf0
22 /* Functions to be called by machine-specific code */
23 int krnRunExceptionHandlers(struct KernelBase *KernelBase, uint8_t exception, void *ctx); /* Run user-supplied exception handlers */
24 void krnRunIRQHandlers(struct KernelBase *KernelBase, uint8_t exception); /* Run user-supplied IRQ handlers */