summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--i386/i386/fpu.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d9a6a29..d225fe6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2007-05-07 Thomas Schwinge <tschwinge@gnu.org>
[bug #15295 --- ``Mach lets processes write to I/O ports'']
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;