1 /* $NetBSD: reg.h,v 1.4 2000/06/04 09:30:44 tsubai Exp $ */
4 #ifndef _POWERPC_REG_H_
5 #define _POWERPC_REG_H_
7 #if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
8 #include "opt_compat.h"
11 /* Must match struct trapframe */
13 register_t fixreg[32];
26 /* Must match pcb.pcb_vec */
39 /* Must match struct trapframe */
66 * XXX these interfaces are MI, so they should be declared in a MI place.
68 int fill_regs(struct thread *, struct reg *);
69 int set_regs(struct thread *, struct reg *);
70 int fill_fpregs(struct thread *, struct fpreg *);
71 int set_fpregs(struct thread *, struct fpreg *);
72 int fill_dbregs(struct thread *, struct dbreg *);
73 int set_dbregs(struct thread *, struct dbreg *);
75 #ifdef COMPAT_FREEBSD32
78 int fill_regs32(struct thread *, struct reg32 *);
79 int set_regs32(struct thread *, struct reg32 *);
80 void ppc32_setregs(struct thread *, struct image_params *, u_long);
82 #define fill_fpregs32(td, reg) fill_fpregs(td,(struct fpreg *)reg)
83 #define set_fpregs32(td, reg) set_fpregs(td,(struct fpreg *)reg)
84 #define fill_dbregs32(td, reg) fill_dbregs(td,(struct dbreg *)reg)
85 #define set_dbregs32(td, reg) set_dbregs(td,(struct dbreg *)reg)
90 #endif /* _POWERPC_REG_H_ */