diff options
author | bde <bde@FreeBSD.org> | 1995-01-14 10:41:41 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-01-14 10:41:41 +0000 |
commit | 4296366254e7c1e86d67eb8311da78146aa9d925 (patch) | |
tree | eb64f4dc04c170720ad181c031fce37869ff3dd1 /sys | |
parent | 352cf37066fe2f802c595827e8cdac85d7e270c3 (diff) | |
download | FreeBSD-src-4296366254e7c1e86d67eb8311da78146aa9d925.zip FreeBSD-src-4296366254e7c1e86d67eb8311da78146aa9d925.tar.gz |
Declare a real `struct fpreg' to prepare for implementing reading and
writing of FP regs for procfs.
Uniformize idempotency ifdef.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/reg.h | 19 | ||||
-rw-r--r-- | sys/i386/include/reg.h | 19 |
2 files changed, 26 insertions, 12 deletions
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index 5690d43..9fc1814 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -34,11 +34,11 @@ * SUCH DAMAGE. * * from: @(#)reg.h 5.5 (Berkeley) 1/18/91 - * $Id: reg.h,v 1.8 1994/05/25 08:56:42 rgrimes Exp $ + * $Id: reg.h,v 1.9 1994/10/02 17:31:29 phk Exp $ */ #ifndef _MACHINE_REG_H_ -#define _MACHINE_REG_H_ 1 +#define _MACHINE_REG_H_ /* * Location of the users' stored @@ -98,13 +98,20 @@ struct reg { * Register set accessible via /proc/$pid/fpreg */ struct fpreg { -#if 0 - int fpr_xxx; /* not implemented */ -#endif + /* + * XXX should get struct from npx.h. Here we give a slightly + * simplified struct. This may be too much detail. Perhaps + * an array of unsigned longs is best. + */ + unsigned long fpr_env[7]; + unsigned char fpr_acc[8][10]; + unsigned long fpr_ex_sw; + unsigned char fpr_pad[64]; }; #ifdef KERNEL int set_regs __P((struct proc *p, struct reg *regs)); void setregs __P((struct proc *, u_long, u_long)); #endif -#endif /* _MACHINE_REG_H_ */ + +#endif /* !_MACHINE_REG_H_ */ diff --git a/sys/i386/include/reg.h b/sys/i386/include/reg.h index 5690d43..9fc1814 100644 --- a/sys/i386/include/reg.h +++ b/sys/i386/include/reg.h @@ -34,11 +34,11 @@ * SUCH DAMAGE. * * from: @(#)reg.h 5.5 (Berkeley) 1/18/91 - * $Id: reg.h,v 1.8 1994/05/25 08:56:42 rgrimes Exp $ + * $Id: reg.h,v 1.9 1994/10/02 17:31:29 phk Exp $ */ #ifndef _MACHINE_REG_H_ -#define _MACHINE_REG_H_ 1 +#define _MACHINE_REG_H_ /* * Location of the users' stored @@ -98,13 +98,20 @@ struct reg { * Register set accessible via /proc/$pid/fpreg */ struct fpreg { -#if 0 - int fpr_xxx; /* not implemented */ -#endif + /* + * XXX should get struct from npx.h. Here we give a slightly + * simplified struct. This may be too much detail. Perhaps + * an array of unsigned longs is best. + */ + unsigned long fpr_env[7]; + unsigned char fpr_acc[8][10]; + unsigned long fpr_ex_sw; + unsigned char fpr_pad[64]; }; #ifdef KERNEL int set_regs __P((struct proc *p, struct reg *regs)); void setregs __P((struct proc *, u_long, u_long)); #endif -#endif /* _MACHINE_REG_H_ */ + +#endif /* !_MACHINE_REG_H_ */ |