aboutsummaryrefslogtreecommitdiff
path: root/arch/microblaze/kernel/process.c
diff options
context:
space:
mode:
authorJohn Williams <john.williams@petalogix.com>2009-09-17 21:21:22 +1000
committerMichal Simek <monstr@monstr.eu>2009-09-22 10:00:41 +0200
commit866d72295d52353eeb0c36ccd8e5813dca869265 (patch)
tree9ce527fd4c0263816e48e3e55be11fa4ae556ace /arch/microblaze/kernel/process.c
parente469b0eb36c8abf033435c4918b03eaab159e002 (diff)
microblaze: Ensure CPU usermode is set on new userspace processes
Signed-off-by: John Williams <john.williams@petalogix.com>
Diffstat (limited to 'arch/microblaze/kernel/process.c')
-rw-r--r--arch/microblaze/kernel/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c
index 00b12c6d532..4201c743cc9 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