This commit is contained in:
Tomas Hruby 2010-07-01 12:31:53 +00:00
parent 7920d48156
commit 97eb470bee
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ PUBLIC int do_fork(struct proc * caller, message * m_ptr)
#if (_MINIX_CHIP == _CHIP_INTEL) #if (_MINIX_CHIP == _CHIP_INTEL)
rpc->p_seg.p_ldt_sel = old_ldt_sel; /* restore descriptors */ rpc->p_seg.p_ldt_sel = old_ldt_sel; /* restore descriptors */
rpc->p_fpu_state.fpu_save_area_p = old_fpu_save_area_p; 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, memcpy(rpc->p_fpu_state.fpu_save_area_p,
rpp->p_fpu_state.fpu_save_area_p, rpp->p_fpu_state.fpu_save_area_p,
FPU_XFP_SIZE); FPU_XFP_SIZE);

View file

@ -29,7 +29,7 @@ PUBLIC int do_getmcontext(struct proc * caller, message * m_ptr)
rp = proc_addr(proc_nr); rp = proc_addr(proc_nr);
#if (_MINIX_CHIP == _CHIP_INTEL) #if (_MINIX_CHIP == _CHIP_INTEL)
if (!proc_used_fpu(rp)) { if (!proc_used_fpu(rp))
return(OK); /* No state to copy */ return(OK); /* No state to copy */
#endif #endif