mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
MFi386: 189423
A better fix for handling different FPU initial control words for different ABIs.
This commit is contained in:
parent
c0a47fb480
commit
227e568e30
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189446
@ -1161,7 +1161,7 @@ cpu_idle_wakeup(int cpu)
|
||||
void (*cpu_idle_hook)(void) = cpu_idle_default;
|
||||
|
||||
/*
|
||||
* Clear registers on exec
|
||||
* Reset registers to default values on exec.
|
||||
*/
|
||||
void
|
||||
exec_setregs(td, entry, stack, ps_strings)
|
||||
@ -1226,6 +1226,7 @@ exec_setregs(td, entry, stack, ps_strings)
|
||||
* emulators don't provide an entry point for initialization.
|
||||
*/
|
||||
td->td_pcb->pcb_flags &= ~FP_SOFTFP;
|
||||
pcb->pcb_initial_npxcw = __INITIAL_NPXCW__;
|
||||
|
||||
/*
|
||||
* Drop the FP state if we hold it, so that the process gets a
|
||||
|
Loading…
Reference in New Issue
Block a user