summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-05-08 20:48:13 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:10 +0200
commitc48736bed95aca1374b2cb19dc76e788958076a9 (patch)
tree4ca8922e55ce26825ac52993df42b501590841a9 /i386
parent2c1f7f5ef7e2252312ecfa77b2352e89669006bf (diff)
2007-05-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
* i386/i386/fpu.c (fpu_set_state): Set fp_valid to TRUE. Free the unused ifps.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/fpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c
index d5824f8..ad2173c 100644
--- a/i386/i386/fpu.c
+++ b/i386/i386/fpu.c
@@ -270,10 +270,11 @@ ASSERT_IPL(SPL0);
ifps->fp_save_state.fp_dp = user_fp_state->fp_dp;
ifps->fp_save_state.fp_ds = user_fp_state->fp_ds;
ifps->fp_regs = *user_fp_regs;
+ ifps->fp_valid = TRUE;
simple_unlock(&pcb->lock);
if (new_ifps != 0)
- zfree(ifps_zone, (vm_offset_t) ifps);
+ zfree(ifps_zone, (vm_offset_t) new_ifps);
}
return KERN_SUCCESS;