1 /* $NetBSD: mcontext.h,v 1.3.2.4 2004/09/21 13:16:25 skrll Exp $ */
3 #ifndef _HPPA_MCONTEXT_H_
4 #define _HPPA_MCONTEXT_H_
7 * General register state
33 typedef unsigned long __greg_t
;
34 typedef __greg_t __gregset_t
[_NGREG
];
37 * Floating point register state
42 unsigned long long __fp_regs
[32];
43 double __fp_dregs
[32];
49 __fpregset_t __fpregs
;
52 #define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP])
53 #define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PCOQH])
54 #define _UC_MACHINE_SET_PC(uc, pc) \
56 (uc)->uc_mcontext.__gregs[_REG_PCOQH] = (pc); \
57 (uc)->uc_mcontext.__gregs[_REG_PCOQT] = (pc) + 4; \
58 } while (/*CONSTCOND*/0)
60 #endif /* !__ASSEMBLER__ */
62 #define _OFFSETOF_UC_GREGS 40
64 #define _UC_SETSTACK 0x00010000
65 #define _UC_CLRSTACK 0x00020000
67 #endif /* _HPPA_MCONTEXT_H_ */