aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJohn Williams <john.williams@petalogix.com>2009-09-17 07:21:22 -0400
committerMichal Simek <monstr@monstr.eu>2009-09-22 04:00:41 -0400
commit866d72295d52353eeb0c36ccd8e5813dca869265 (patch)
tree9ce527fd4c0263816e48e3e55be11fa4ae556ace /arch
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')
-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)
235 regs->pc = pc; 235 regs->pc = pc;
236 regs->r1 = usp; 236 regs->r1 = usp;
237 regs->pt_mode = 0; 237 regs->pt_mode = 0;
238 regs->msr |= MSR_UMS;
238} 239}
239 240
240#ifdef CONFIG_MMU 241#ifdef CONFIG_MMU