>From 14291fcace3b39c5302716f0b1972e586d2b991a Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Mon, 17 Aug 2009 12:40:56 -0700 Subject: [PATCH 2/2] Update m68k's clone_thread. This patch adds handling of CLONE_SETTLS flag to m68k's clone_thread. Signed-off-by: Maxim Kuvyrkov --- arch/m68k/kernel/process.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c index 72bad65..0d7f9ff 100644 --- a/arch/m68k/kernel/process.c +++ b/arch/m68k/kernel/process.c @@ -251,6 +251,10 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, p->thread.usp = usp; p->thread.ksp = (unsigned long)childstack; + + if (clone_flags & CLONE_SETTLS) + task_thread_info(p)->tp_value = regs->d5; + /* * Must save the current SFC/DFC value, NOT the value when * the parent was last descheduled - RGH 10-08-96 -- 1.6.2.4