[BACK]Return to locore.S CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / i386

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/i386/i386/locore.S between version 1.43.4.6 and 1.43.4.8

version 1.43.4.6, 2007/01/19 19:35:22 version 1.43.4.8, 2007/01/25 11:27:54
Line 720  NENTRY(lgdt)
Line 720  NENTRY(lgdt)
         pushl   %eax          pushl   %eax
         lret          lret
   
   NENTRY(x86_flush)
           /* Reload code selector by doing intersegment return. */
           popl    %eax
           pushl   $GSEL(GCODE_SEL, SEL_KPL)
           pushl   %eax
           lret
   
 /*****************************************************************************/  /*****************************************************************************/
   
 /*  /*
Line 1159  ENTRY(cpu_exit)
Line 1166  ENTRY(cpu_exit)
         /* Restore the idle context. */          /* Restore the idle context. */
         cli          cli
   
         /* In case we fault... */  
         movl    $0,CPUVAR(CURLWP)  
   
         /* Restore stack pointers. */          /* Restore stack pointers. */
         movl    PCB_ESP(%esi),%esp          movl    PCB_ESP(%esi),%esp
         movl    PCB_EBP(%esi),%ebp          movl    PCB_EBP(%esi),%ebp
Line 1188  ENTRY(cpu_exit)
Line 1192  ENTRY(cpu_exit)
         /* Record new pcb. */          /* Record new pcb. */
         SET_CURPCB(%esi)          SET_CURPCB(%esi)
   
           /* Now off the CPU. */
           movl    $0,CPUVAR(CURLWP)
   
         /* Interrupts are okay again. */          /* Interrupts are okay again. */
         sti          sti
   
         /* Jump into cpu_switch() with the right state. */          /* Jump into cpu_switch() with the right state. */
         xorl    %esi,%esi          xorl    %esi,%esi
         movl    %esi,CPUVAR(CURLWP)  
         jmp     idle_start          jmp     idle_start
   
 /*  /*

Legend:
Removed from v.1.43.4.6  
changed lines
  Added in v.1.43.4.8

CVSweb <webmaster@jp.NetBSD.org>