Jelajahi Sumber

microblaze: Ensure CPU usermode is set on new userspace processes

Signed-off-by: John Williams <john.williams@petalogix.com>
John Williams 15 tahun lalu
induk
melakukan
866d72295d
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      arch/microblaze/kernel/process.c

+ 1 - 0
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->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