fix for smbClose
[libogc.git] / gc / ogc / context.h
blob32668f1daed95711a3f705dcfd06f81d91444a66
1 #ifndef __EXCONTEXT_H__
2 #define __EXCONTEXT_H__
4 #define NUM_EXCEPTIONS 15
6 #define EX_SYS_RESET 0
7 #define EX_MACH_CHECK 1
8 #define EX_DSI 2
9 #define EX_ISI 3
10 #define EX_INT 4
11 #define EX_ALIGN 5
12 #define EX_PRG 6
13 #define EX_FP 7
14 #define EX_DEC 8
15 #define EX_SYS_CALL 9
16 #define EX_TRACE 10
17 #define EX_PERF 11
18 #define EX_IABR 12
19 #define EX_RESV 13
20 #define EX_THERM 14
22 #ifndef _LANGUAGE_ASSEMBLY
24 #include <gctypes.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
30 typedef struct _excption_frame {
31 u32 EXCPT_Number;
32 u32 SRR0,SRR1;
33 u32 GPR[32];
34 u32 GQR[8];
35 u32 CR, LR, CTR, XER, MSR, DAR;
37 u16 state; //used to determine whether to restore the fpu context or not
38 u16 mode; //unused
40 f64 FPR[32];
41 u32 FPSCR_PAD;
42 u32 FPSCR;
43 f64 PSFPR[32];
44 } frame_context;
46 #ifdef __cplusplus
48 #endif /* __cplusplus */
50 #endif //!_LANGUAGE_ASSEMBLY
52 #endif