vserver 1.9.3
[linux-2.6.git] / arch / sparc / kernel / process.c
index 277883d..1dc9181 100644 (file)
@@ -435,8 +435,6 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
 {
        unsigned long parent_tid_ptr, child_tid_ptr;
 
-       clone_flags &= ~CLONE_IDLETASK;
-
        parent_tid_ptr = regs->u_regs[UREG_I2];
        child_tid_ptr = regs->u_regs[UREG_I4];
 
@@ -628,7 +626,7 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs)
                       &current->thread.fpqueue[0], &current->thread.fpqdepth);
                if (regs != NULL) {
                        regs->psr &= ~(PSR_EF);
-                       last_task_used_math = 0;
+                       last_task_used_math = NULL;
                }
        }
 #endif