From 866d72295d52353eeb0c36ccd8e5813dca869265 Mon Sep 17 00:00:00 2001
From: John Williams <john.williams@petalogix.com>
Date: Thu, 17 Sep 2009 21:21:22 +1000
Subject: [PATCH] microblaze: Ensure CPU usermode is set on new userspace
 processes

Signed-off-by: John Williams <john.williams@petalogix.com>
---
 arch/microblaze/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c
index 00b12c6d5326..4201c743cc9f 100644
--- a/arch/microblaze/kernel/process.c
+++ b/arch/microblaze/kernel/process.c
@@ -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