MFi386: 189423

A better fix for handling different FPU initial control words for different
  ABIs.
This commit is contained in:
Yoshihiro Takahashi 2009-03-06 11:15:24 +00:00
parent c0a47fb480
commit 227e568e30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189446

View file

@ -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