NetBSD/sys/arch/powerpc/include/reg.h

27 lines
667 B
C
Raw Normal View History

2000-11-23 05:35:10 +03:00
/* $NetBSD: reg.h,v 1.5 2000/11/23 02:35:10 matt Exp $ */
1998-01-05 10:02:46 +03:00
2000-11-23 05:35:10 +03:00
#ifndef _POWERPC_REG_H_
#define _POWERPC_REG_H_
struct reg { /* base registers */
1999-05-03 14:02:19 +04:00
register_t fixreg[32];
2000-11-23 05:35:10 +03:00
register_t lr; /* Link Register */
int cr; /* Condition Register */
int xer; /* SPR 1 */
register_t ctr; /* Count Register */
register_t pc; /* Program Counter */
1999-05-03 14:02:19 +04:00
};
2000-11-23 05:35:10 +03:00
struct fpreg { /* Floating Point registers */
double fpreg[32];
2000-11-23 05:35:10 +03:00
double fpscr; /* Status and Control Register */
};
struct vreg { /* Vector registers */
u_int32_t vreg[32][4];
register_t vscr; /* Vector Status And Control Register */
register_t vrsave; /* SPR 238 */
};
2000-11-23 05:35:10 +03:00
#endif /* _POWERPC_REG_H_ */