code: 9ferno

ref: 83246e296ea433b65b9d295b5e08fedd39ff1ab7
dir: /Inferno/amd64/include/ureg.h/

View raw version
struct Ureg {
	u64	ax;
	u64	bx;
	u64	cx;
	u64	dx;
	u64	si;
	u64	di;
	u64	bp;
	u64	r8;
	u64	r9;
	u64	r10;
	u64	r11;
	u64	r12;
	u64	r13;
	u64	r14;
	u64	r15;

	u16	ds;
	u16	es;
	u16	fs;
	u16	gs;

	u64	trap;				/* trap type */
	u64	ecode;				/* error code (or zero) */
	u64	pc;				/* pc */
	u64	cs;				/* old context */
	u64	flags;				/* old flags */
	union {					/* sp */
		u64	usp;
		u64	sp;
	};
	u64	ss;				/* old stack segment */
};