microblaze: Ensure CPU usermode is set on new userspace processes
authorJohn Williams <john.williams@petalogix.com>
Thu, 17 Sep 2009 11:21:22 +0000 (21:21 +1000)
committerMichal Simek <monstr@monstr.eu>
Tue, 22 Sep 2009 08:00:41 +0000 (10:00 +0200)
Signed-off-by: John Williams <john.williams@petalogix.com>
arch/microblaze/kernel/process.c

index 00b12c6d5326767fc9260df77801a699050cdee7..4201c743cc9fb33e17a52ae057940345d79e2681 100644 (file)
@@ -235,6 +235,7 @@ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp)
        regs->pc = pc;
        regs->r1 = usp;
        regs->pt_mode = 0;
+       regs->msr |= MSR_UMS;
 }
 
 #ifdef CONFIG_MMU