diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 5b248a2795f9..4ba623f835dd 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1155,7 +1155,7 @@ cpu_idle(void) 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) @@ -1220,6 +1220,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 |