summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 23:51:56 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 23:51:56 +0000
commit08fe94fb944365cc4b0fb414189679bba283eb4b (patch)
treea83c620556e19eb1489147c91362a1fb584c9a09 /sys/gnu
parent395251513756942d9d55fa15a07be9765a60195f (diff)
downloadFreeBSD-src-08fe94fb944365cc4b0fb414189679bba283eb4b.zip
FreeBSD-src-08fe94fb944365cc4b0fb414189679bba283eb4b.tar.gz
Proc locking.
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/i386/fpemul/fpu_entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_entry.c b/sys/gnu/i386/fpemul/fpu_entry.c
index 049b013..3d03783 100644
--- a/sys/gnu/i386/fpemul/fpu_entry.c
+++ b/sys/gnu/i386/fpemul/fpu_entry.c
@@ -230,8 +230,10 @@ math_emulate(struct trapframe * tframe)
#endif
FPU_lookahead = FPU_LOOKAHEAD;
+ PROC_LOCK(curproc);
if (curproc->p_flag & P_TRACED)
FPU_lookahead = 0;
+ PROC_UNLOCK(curproc);
do_another_FPU_instruction:
OpenPOWER on IntegriCloud