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:
parent
8661978fee
commit
af8e6bf78c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user