Make sure that extra threads in 32-bit processes stay in 32-bit mode. This

fixes operation of threaded 32-bit binaries on 64-bit kernels.
This commit is contained in:
nwhitehorn 2011-04-13 13:24:27 +00:00
parent 8661978fee
commit af8e6bf78c

View File

@ -1015,6 +1015,9 @@ cpu_set_upcall_kse(struct thread *td, void (*entry)(void *), void *arg,
tf->srr0 = (register_t)entry;
#ifdef AIM
tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT;
#ifdef __powerpc64__
tf->srr1 &= ~PSL_SF;
#endif
#else
tf->srr1 = PSL_USERSET;
#endif