fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / arch / v850 / kernel / process.c
index c4f844c..6307dc5 100644 (file)
@@ -83,7 +83,7 @@ int kernel_thread (int (*fn)(void *), void *arg, unsigned long flags)
        /* Clone this thread.  Note that we don't pass the clone syscall's
           second argument -- it's ignored for calls from kernel mode (the
           child's SP is always set to the top of the kernel stack).  */
-       arg0 = flags | CLONE_VM;
+       arg0 = flags | CLONE_VM | CLONE_KTHREAD;
        syscall = __NR_clone;
        asm volatile ("trap " SYSCALL_SHORT_TRAP
                      : "=r" (ret), "=r" (syscall)