Fix the psl_userset32 definition.

It should be based on psl_userset, not psl_kernset.  As kernset, it would
inherit kernel config, including privilege level.
This commit is contained in:
Justin Hibbits 2018-03-01 04:44:17 +00:00
parent fdabb5f55e
commit 5903f5954a

View File

@ -216,7 +216,7 @@ booke_cpu_init(void)
#endif #endif
psl_userset = psl_kernset | PSL_PR; psl_userset = psl_kernset | PSL_PR;
#ifdef __powerpc64__ #ifdef __powerpc64__
psl_userset32 = psl_kernset & ~PSL_CM; psl_userset32 = psl_userset & ~PSL_CM;
#endif #endif
psl_userstatic = ~(PSL_VEC | PSL_FP | PSL_FE0 | PSL_FE1); psl_userstatic = ~(PSL_VEC | PSL_FP | PSL_FE0 | PSL_FE1);