use linker to align fpu state save area
This commit is contained in:
@@ -55,8 +55,7 @@ int do_sigreturn(struct proc * caller, message * m_ptr)
|
||||
#if (_MINIX_CHIP == _CHIP_INTEL)
|
||||
if(sc.sc_flags & MF_FPU_INITIALIZED)
|
||||
{
|
||||
memcpy(rp->p_fpu_state.fpu_save_area_p, &sc.sc_fpu_state,
|
||||
FPU_XFP_SIZE);
|
||||
memcpy(rp->p_seg.fpu_state, &sc.sc_fpu_state, FPU_XFP_SIZE);
|
||||
rp->p_misc_flags |= MF_FPU_INITIALIZED; /* Restore math usage flag. */
|
||||
/* force reloading FPU */
|
||||
release_fpu(rp);
|
||||
|
||||
Reference in New Issue
Block a user