sh64: Fix up the build for the thread_xstate changes.
This updates the sh64 processor info with the sh32 changes in order to tie in to the generic task_xstate management code. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -295,7 +295,7 @@ restore_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc)
|
||||
regs->sr |= SR_FD;
|
||||
}
|
||||
|
||||
err |= __copy_from_user(¤t->thread.fpu.hard, &sc->sc_fpregs[0],
|
||||
err |= __copy_from_user(¤t->thread.xstate->hardfpu, &sc->sc_fpregs[0],
|
||||
(sizeof(long long) * 32) + (sizeof(int) * 1));
|
||||
|
||||
return err;
|
||||
@@ -320,7 +320,7 @@ setup_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc)
|
||||
regs->sr |= SR_FD;
|
||||
}
|
||||
|
||||
err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.fpu.hard,
|
||||
err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.xstate->hardfpu,
|
||||
(sizeof(long long) * 32) + (sizeof(int) * 1));
|
||||
clear_used_math();
|
||||
|
||||
|
Reference in New Issue
Block a user