#define TR_EDI(x)	 (x)
#define TR_ESI(x)	 4(x)
#define TR_EBP(x)	 8(x)
#define TR_RESERVE	 12(x)
#define TR_EBX(x)	 16(x)
#define TR_EDX(x)	 20(x)
#define TR_ECX(x)	 24(x)
#define TR_EAX(x)	 28(x)
#define TR_FLAGS(x)	 32(x)
#define TR_ES(x)	 34(x)
#define TR_DS(x)	 36(x)
#define TR_FS(x)	 38(x)
#define TR_GS(x)	 40(x)
#define TR_IP(x)	 42(x)
#define TR_CS(x)	 44(x)
#define TR_SP(x)	 46(x)
#define TR_SS(x)	 48(x)

#define REGF_GS 	 _regf
#define REGF_FS 	 _regf+4
#define REGF_ES 	 _regf+8
#define REGF_DS 	 _regf+12
#define REGF_EDI	 _regf+16
#define REGF_ESI	 _regf+20
#define REGF_EBP	 _regf+24
#define REGF_ESPORG	 _regf+28
#define REGF_EBX	 _regf+32
#define REGF_EDX	 _regf+36
#define REGF_ECX	 _regf+40
#define REGF_EAX	 _regf+44
#define REGF_FAULTNO _regf+48
#define REGF_ERR	 _regf+52
#define REGF_EIP	 _regf+56
#define REGF_CS 	 _regf+60
#define REGF_EFLAGS	 _regf+64
#define REGF_ESP	 _regf+68
#define REGF_SS 	 _regf+72

#define REG_INFO_ERR	_reg_info+0
#define REG_INFO_EIP	_reg_info+4
#define REG_INFO_CS	_reg_info+8
#define REG_INFO_CR2	_reg_info+40
#define REG_INFO_PTE	_reg_info+44

#define R_GS
#define R_FS	  4
#define R_ES	  8
#define R_DS	  12
#define R_EDI	  16
#define R_ESI	  20
#define R_EBP	  24
#define R_ESPORG  28
#define R_EBX	  32
#define R_EDX	  36
#define R_ECX	  40
#define R_EAX	  44
#define R_FAULTNO 48
#define R_ERR	  52
#define R_EIP	  56
#define R_CS	  60
#define R_EFLAGS  64
#define R_ESP	  68
#define R_SS	  72
#define R_SIG_RAISED 76
#define R_SIG_BLOCKED 80
#define R_KSTACK 84
