Commit 866d7229 authored by John Williams's avatar John Williams Committed by Michal Simek

microblaze: Ensure CPU usermode is set on new userspace processes

Signed-off-by: default avatarJohn Williams <john.williams@petalogix.com>
parent e469b0eb
...@@ -235,6 +235,7 @@ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) ...@@ -235,6 +235,7 @@ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp)
regs->pc = pc; regs->pc = pc;
regs->r1 = usp; regs->r1 = usp;
regs->pt_mode = 0; regs->pt_mode = 0;
regs->msr |= MSR_UMS;
} }
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment