reg.h revision 129198
1/* $NetBSD: reg.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */ 2/* $FreeBSD: head/sys/arm/include/reg.h 129198 2004-05-14 11:46:45Z cognet $ */ 3#ifndef MACHINE_REG_H 4#define MACHINE_REG_H 5 6#include <machine/fp.h> 7 8struct reg { 9 unsigned int r[13]; 10 unsigned int r_sp; 11 unsigned int r_lr; 12 unsigned int r_pc; 13 unsigned int r_cpsr; 14}; 15 16struct fpreg { 17 unsigned int fpr_fpsr; 18 fp_reg_t fpr[8]; 19}; 20 21struct dbreg { 22 unsigned int dr[8]; /* debug registers */ 23}; 24 25int fill_regs(struct thread *, struct reg *); 26int set_regs(struct thread *, struct reg *); 27int fill_fpregs(struct thread *, struct fpreg *); 28int set_fpregs(struct thread *, struct fpreg *); 29int fill_dbregs(struct thread *, struct dbreg *); 30int set_dbregs(struct thread *, struct dbreg *); 31 32#endif /* !MACHINE_REG_H */ 33