From 866d72295d52353eeb0c36ccd8e5813dca869265 Mon Sep 17 00:00:00 2001 From: John Williams Date: Thu, 17 Sep 2009 21:21:22 +1000 Subject: microblaze: Ensure CPU usermode is set on new userspace processes Signed-off-by: John Williams --- arch/microblaze/kernel/process.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/microblaze/kernel/process.c') 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 -- cgit v1.2.3-70-g09d2