[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 and 1.43.4.1

version 1.43, 2006/07/25 00:23:38 version 1.43.4.1, 2006/10/20 19:42:24
Line 886  ENTRY(cpu_switch)
Line 886  ENTRY(cpu_switch)
         sti          sti
 idle_unlock:  idle_unlock:
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_unlock_idle)          pushl   $_C_LABEL(sched_mutex)
           call    _C_LABEL(mutex_exit)
           addl    $4,%esp
 #endif  #endif
         /* Interrupts are okay again. */          /* Interrupts are okay again. */
         pushl   $IPL_NONE               # spl0()          pushl   $IPL_NONE               # spl0()
Line 915  idle_exit:
Line 917  idle_exit:
         movl    $IPL_HIGH,CPUVAR(ILEVEL)                # splhigh          movl    $IPL_HIGH,CPUVAR(ILEVEL)                # splhigh
         sti          sti
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_lock_idle)          pushl   $_C_LABEL(sched_mutex)
           call    _C_LABEL(mutex_enter)
           addl    $4,%esp
 #endif  #endif
         movl    _C_LABEL(sched_whichqs),%ecx          movl    _C_LABEL(sched_whichqs),%ecx
         bsfl    %ecx,%ebx          bsfl    %ecx,%ebx
Line 1068  switch_restored:
Line 1072  switch_restored:
         movl    $1,%ebx          movl    $1,%ebx
   
 switch_return:  switch_return:
           /* Donate the current CPU's sched mutex to the LWP */
           movl    CPUVAR(SELF),%eax
           addl    $CPU_INFO_SCHED_MUTEX,%eax
           movl    %eax,L_MUTEX(%edi)
   
 #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)  #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
         call    _C_LABEL(sched_unlock_idle)          pushl   $_C_LABEL(sched_mutex)
           call    _C_LABEL(mutex_exit)
           addl    $4,%esp
 #endif  #endif
         cmpl    $0,CPUVAR(IPENDING)          cmpl    $0,CPUVAR(IPENDING)
         jz      3f          jz      3f

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.43.4.1

CVSweb <webmaster@jp.NetBSD.org>