Diff for /src/sys/i386/i386/Attic/machdep.c between versions 1.57 and 1.58

version 1.57, 2004/04/05 19:15:57 version 1.58, 2004/05/05 19:26:38
Line 977  setregs(p, entry, stack, ps_strings) Line 977  setregs(p, entry, stack, ps_strings)
         p->p_thread->td_pcb->pcb_flags &= ~FP_SOFTFP;          p->p_thread->td_pcb->pcb_flags &= ~FP_SOFTFP;
   
         /*          /*
         * Arrange to trap the next npx or `fwait' instruction (see npx.c         * note: do not set CR0_TS here.  npxinit() must do it after clearing
         * for why fwait must be trapped at least if there is an npx or an         * gd_npxthread.  Otherwise a preemptive interrupt thread may panic
         * emulator).  This is mainly to handle the case where npx0 is not         * in npxdna().
         * configured, since the npx routines normally set up the trap 
         * otherwise.  It should be done only at boot time, but doing it 
         * here allows modifying `npx_exists' for testing the emulator on 
         * systems with an npx. 
          */           */
        load_cr0(rcr0() | CR0_MP | CR0_TS);        crit_enter();
         load_cr0(rcr0() | CR0_MP);
   
 #if NNPX > 0  #if NNPX > 0
         /* Initialize the npx (if any) for the current process. */          /* Initialize the npx (if any) for the current process. */
         npxinit(__INITIAL_NPXCW__);          npxinit(__INITIAL_NPXCW__);
 #endif  #endif
           crit_exit();
   
         /*          /*
          * note: linux emulator needs edx to be 0x0 on entry, which is           * note: linux emulator needs edx to be 0x0 on entry, which is

Removed from v.1.57  
changed lines
  Added in v.1.58