SCCS-vsn: sys/pmax/pmax/vm_machdep.c 7.5
*
* from: Utah $Hdr: vm_machdep.c 1.21 91/04/06$
*
*
* from: Utah $Hdr: vm_machdep.c 1.21 91/04/06$
*
- * @(#)vm_machdep.c 7.4 (Berkeley) %G%
+ * @(#)vm_machdep.c 7.5 (Berkeley) %G%
/*
* Dump the machine specific header information at the start of a core dump.
/*
* Dump the machine specific header information at the start of a core dump.
- * XXX should snapshot FPU here?
*/
cpu_coredump(p, vp, cred)
struct proc *p;
struct vnode *vp;
struct ucred *cred;
{
*/
cpu_coredump(p, vp, cred)
struct proc *p;
struct vnode *vp;
struct ucred *cred;
{
+ extern struct proc *machFPCurProcPtr;
+
+ /*
+ * Copy floating point state from the FP chip if this process
+ * has state stored there.
+ */
+ if (p == machFPCurProcPtr)
+ MachSaveCurFPState(p);
return (vn_rdwr(UIO_WRITE, vp, (caddr_t)p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,
return (vn_rdwr(UIO_WRITE, vp, (caddr_t)p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,