]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix
authorTomas Hruby <tom@minix3.org>
Thu, 1 Jul 2010 12:31:53 +0000 (12:31 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 1 Jul 2010 12:31:53 +0000 (12:31 +0000)
kernel/system/do_fork.c
kernel/system/do_mcontext.c

index c6956a5e60abdde03e474c9a2d24487ef8477c1b..81d079c980df6d99600c2bf1febe1667facd963e 100644 (file)
@@ -67,7 +67,7 @@ PUBLIC int do_fork(struct proc * caller, message * m_ptr)
 #if (_MINIX_CHIP == _CHIP_INTEL)
   rpc->p_seg.p_ldt_sel = old_ldt_sel;  /* restore descriptors */
   rpc->p_fpu_state.fpu_save_area_p = old_fpu_save_area_p;
-  if(proc_used_fpu(rpp)) {
+  if(proc_used_fpu(rpp))
        memcpy(rpc->p_fpu_state.fpu_save_area_p,
               rpp->p_fpu_state.fpu_save_area_p,
               FPU_XFP_SIZE);
index 7b27137e0e6fbc0f430fdd69fa9febe49dcf1cf7..2b1e496500a6291f294e5e3831ba8db98d3feac3 100644 (file)
@@ -29,7 +29,7 @@ PUBLIC int do_getmcontext(struct proc * caller, message * m_ptr)
   rp = proc_addr(proc_nr);
 
 #if (_MINIX_CHIP == _CHIP_INTEL)
-  if (!proc_used_fpu(rp)) {
+  if (!proc_used_fpu(rp))
        return(OK);     /* No state to copy */
 #endif