diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-09-14 22:43:40 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-09-14 22:43:40 +0000 |
commit | 1a291e0cd4ff0e901be82a01e5fd47443dc786c7 (patch) | |
tree | f2a7f141e7d67a59798406c7d1141d278d19b9bc /sys/amd64/amd64/machdep.c | |
parent | 011ee1102f24322d6dea957778060305289c7c6b (diff) | |
download | src-1a291e0cd4ff0e901be82a01e5fd47443dc786c7.tar.gz src-1a291e0cd4ff0e901be82a01e5fd47443dc786c7.zip |
Add new functions fill_fpregs() and set_fpregs(), like fill_regs()
and set_regs() but for the floating point register state. The code
is stolen from procfs_machdep.c, and moved out of there into
machdep.c.
These functions are needed for generating ELF core dumps.
Notes
Notes:
svn path=/head/; revision=39197
Diffstat (limited to 'sys/amd64/amd64/machdep.c')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 69ad6115b511..12cfb0883cba 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.307 1998/09/01 02:04:12 kato Exp $ + * $Id: machdep.c,v 1.308 1998/09/14 11:47:40 abial Exp $ */ #include "apm.h" @@ -1795,6 +1795,24 @@ set_regs(p, regs) return (0); } +int +fill_fpregs(p, fpregs) + struct proc *p; + struct fpreg *fpregs; +{ + bcopy(&p->p_addr->u_pcb.pcb_savefpu, fpregs, sizeof *fpregs); + return (0); +} + +int +set_fpregs(p, fpregs) + struct proc *p; + struct fpreg *fpregs; +{ + bcopy(fpregs, &p->p_addr->u_pcb.pcb_savefpu, sizeof *fpregs); + return (0); +} + #ifndef DDB void Debugger(const char *msg) |