Make process_write_fpregs() safe.
This commit is contained in:
parent
d730fead60
commit
764d69bf8e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: process_machdep.c,v 1.14 1995/08/06 05:33:02 mycroft Exp $ */
|
||||
/* $NetBSD: process_machdep.c,v 1.15 1995/08/06 18:02:22 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
@ -197,6 +197,8 @@ process_write_fpregs(p, regs)
|
||||
struct save87 *frame;
|
||||
|
||||
#if NNPX > 0
|
||||
if (npxproc != p)
|
||||
npxdna(p);
|
||||
if (npxproc == p)
|
||||
npxdrop();
|
||||
#endif
|
||||
@ -205,7 +207,6 @@ process_write_fpregs(p, regs)
|
||||
if (frame == NULL)
|
||||
return (EIO);
|
||||
|
||||
p->p_md.md_flags |= MDP_USEDFPU;
|
||||
bcopy(regs, frame, sizeof(frame));
|
||||
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user