From: Tomas Hruby Date: Thu, 1 Jul 2010 12:31:53 +0000 (+0000) Subject: Fix X-Git-Tag: v3.1.8~299 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=97eb470bee3c13195762d627c40914b94238bcab;p=minix.git Fix --- 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