X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Fsh%2Fkernel%2Fprocess.c;fp=arch%2Fsh%2Fkernel%2Fprocess.c;h=9b7a459a4613d8573a7c84ac3bf970402431c31e;hb=ec0d7f18ab7b5097d7c0c8f3d909ca1031b9d5cd;hp=e77feaf117abbb404cf43f5d200f44f2acaa6e27;hpb=269af9a1a08d368b46d72e74126564d04c354f7e;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index e77feaf117ab..9b7a459a4613 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -13,8 +13,15 @@ unsigned long __stack_chk_guard __read_mostly; EXPORT_SYMBOL(__stack_chk_guard); #endif +/* + * this gets called so that we can store lazy state into memory and copy the + * current task into the new thread. + */ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) { +#ifdef CONFIG_SUPERH32 + unlazy_fpu(src, task_pt_regs(src)); +#endif *dst = *src; if (src->thread.xstate) {