diff --git a/kernel/system/do_fork.c b/kernel/system/do_fork.c index c6956a5e6..81d079c98 100644 --- a/kernel/system/do_fork.c +++ b/kernel/system/do_fork.c @@ -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); diff --git a/kernel/system/do_mcontext.c b/kernel/system/do_mcontext.c index 7b27137e0..2b1e49650 100644 --- a/kernel/system/do_mcontext.c +++ b/kernel/system/do_mcontext.c @@ -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