diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-04-17 22:02:47 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-04-17 22:02:47 +0000 |
| commit | 8804bf6b03ee51e89815468e56f28a4a4879bc40 (patch) | |
| tree | f13cb05290ea9be7297d9025be3b73221fb5e153 /sys/gnu | |
| parent | 9520fc2bed4f815b847bf342eb7414371a87470d (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/i386/fpemul/fpu_entry.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_entry.c b/sys/gnu/i386/fpemul/fpu_entry.c index dde1b77f2375..589ac48d4458 100644 --- a/sys/gnu/i386/fpemul/fpu_entry.c +++ b/sys/gnu/i386/fpemul/fpu_entry.c @@ -198,7 +198,7 @@ char emulating = 0; static int math_emulate(struct trapframe * tframe) { - + struct proc *p; unsigned char FPU_modrm; unsigned short code; #ifdef LOOKAHEAD_LIMIT @@ -232,10 +232,11 @@ math_emulate(struct trapframe * tframe) #endif FPU_lookahead = FPU_LOOKAHEAD; - PROC_LOCK(curthread->td_proc); - if (curproc->p_flag & P_TRACED) + p = curthread->td_proc; + PROC_LOCK(p); + if (p->p_flag & P_TRACED) FPU_lookahead = 0; - PROC_UNLOCK(curthread->td_proc); + PROC_UNLOCK(p); do_another_FPU_instruction: |
