summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/process.c
diff options
context:
space:
mode:
authorJohn Williams <john.williams@petalogix.com>2009-09-17 13:21:22 +0200
committerMichal Simek <monstr@monstr.eu>2009-09-22 10:00:41 +0200
commit866d72295d52353eeb0c36ccd8e5813dca869265 (patch)
tree9ce527fd4c0263816e48e3e55be11fa4ae556ace /arch/microblaze/kernel/process.c
parentmicroblaze: Use correct kbuild variable KBUILD_CFLAGS (diff)
downloadlinux-866d72295d52353eeb0c36ccd8e5813dca869265.tar.xz
linux-866d72295d52353eeb0c36ccd8e5813dca869265.zip
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 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