[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.44

version 1.43.4.6, 2007/01/19 19:35:22 version 1.44, 2006/10/25 13:56:15
Line 879  ENTRY(cpu_switch)
Line 879  ENTRY(cpu_switch)
         xorl    %esi,%esi          xorl    %esi,%esi
         sti          sti
 idle_unlock:  idle_unlock:
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG) || defined(DIAGNOSTIC)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_unlock_idle)          call    _C_LABEL(sched_unlock_idle)
 #endif  #endif
         /* Interrupts are okay again. */          /* Interrupts are okay again. */
Line 908  idle_start:
Line 908  idle_start:
 idle_exit:  idle_exit:
         movl    $IPL_HIGH,CPUVAR(ILEVEL)                # splhigh          movl    $IPL_HIGH,CPUVAR(ILEVEL)                # splhigh
         sti          sti
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG) || defined(DIAGNOSTIC)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_lock_idle)          call    _C_LABEL(sched_lock_idle)
 #endif  #endif
         movl    _C_LABEL(sched_whichqs),%ecx          movl    _C_LABEL(sched_whichqs),%ecx
Line 1062  switch_restored:
Line 1062  switch_restored:
         movl    $1,%ebx          movl    $1,%ebx
   
 switch_return:  switch_return:
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG) || defined(DIAGNOSTIC)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_unlock_idle)          call    _C_LABEL(sched_unlock_idle)
 #endif  #endif
         cmpl    $0,CPUVAR(IPENDING)          cmpl    $0,CPUVAR(IPENDING)
Line 1155  ENTRY(cpu_exit)
Line 1155  ENTRY(cpu_exit)
         movl    CPUVAR(IDLE_PCB),%esi          movl    CPUVAR(IDLE_PCB),%esi
         movl    CPUVAR(IDLE_TSS_SEL),%edx          movl    CPUVAR(IDLE_TSS_SEL),%edx
 #endif  #endif
           /* In case we fault... */
           movl    $0,CPUVAR(CURLWP)
   
         /* 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 1191  ENTRY(cpu_exit)
Line 1190  ENTRY(cpu_exit)
         /* Interrupts are okay again. */          /* Interrupts are okay again. */
         sti          sti
   
           /*
            * Schedule the dead LWP's stack to be freed.
            */
           pushl   %edi
           call    _C_LABEL(lwp_exit2)
           addl    $4,%esp
   
         /* 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)          movl    %esi,CPUVAR(CURLWP)

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

CVSweb <webmaster@jp.NetBSD.org>