#ifndef __EXCONTEXT_H__
#define __EXCONTEXT_H__

#define NUM_EXCEPTIONS		15

#define EX_SYS_RESET		 0
#define EX_MACH_CHECK		 1
#define EX_DSI				 2
#define EX_ISI				 3
#define EX_INT				 4
#define EX_ALIGN			 5
#define EX_PRG				 6
#define EX_FP				 7
#define EX_DEC				 8
#define EX_SYS_CALL			 9
#define EX_TRACE			10
#define EX_PERF				11
#define EX_IBAR				12
#define EX_RESV				13
#define EX_THERM			14

#ifndef _LANGUAGE_ASSEMBLY

#include <gctypes.h>

#ifdef __cplusplus
   extern "C" {
#endif /* __cplusplus */

typedef struct _excption_frame {
	u32 EXCPT_Number;
	u32 SRR0,SRR1;
	u32 GPR[32];
	u32 GQR[8];
	u32 CR, LR, CTR, XER, MSR, DAR;
} frame_context;

typedef struct _fp_context {
	f64 FPR[32];
	f64	FPSCR;
	f64 PSFPR[32];
} fp_context;

#ifdef __cplusplus
   }
#endif /* __cplusplus */

#endif		//!_LANGUAGE_ASSEMBLY

#endif
