Improvements to comments.
[AROS.git] / compiler / include / exec / interrupts.h
blobe5cd063df544e4a2ab3b07f74b6b8a74f50e5760
1 #ifndef EXEC_INTERRUPTS_H
2 #define EXEC_INTERRUPTS_H
4 /*
5 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Interrupt structures
9 Lang: english
12 #ifndef EXEC_LISTS_H
13 # include <exec/lists.h>
14 #endif
15 #ifndef EXEC_NODES_H
16 # include <exec/nodes.h>
17 #endif
19 /* CPU-dependent struct ExceptionContext */
20 #if defined __i386__
21 #include <aros/i386/cpucontext.h>
22 #elif defined __x86_64__
23 #include <aros/x86_64/cpucontext.h>
24 #elif defined __mc68000__
25 #include <aros/m68k/cpucontext.h>
26 #elif defined __powerpc__
27 #include <aros/ppc/cpucontext.h>
28 #elif defined __arm__
29 #include <aros/arm/cpucontext.h>
30 #else
31 #error unsupported CPU type
32 #endif
34 struct Interrupt
36 struct Node is_Node;
37 APTR is_Data;
38 VOID (* is_Code)(); /* server code entry */
41 /* PRIVATE */
42 struct IntVector
44 APTR iv_Data;
45 VOID (* iv_Code)();
46 struct Node * iv_Node;
49 /* PRIVATE */
50 struct SoftIntList
52 struct List sh_List;
53 UWORD sh_Pad;
56 #define SIH_PRIMASK (0xf0)
58 #define INTB_NMI 15
59 #define INTF_NMI (1L<<15)
61 #endif /* EXEC_INTERRUPTS_H */