[BACK]Return to lock_stubs.s CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / m68k / m68k

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

Diff for /src/sys/arch/m68k/m68k/lock_stubs.s between version 1.9 and 1.10

version 1.9, 2013/08/01 13:42:52 version 1.10, 2020/03/08 06:12:01
Line 83  STRONG_ALIAS(_atomic_cas_ulong_ni,_atomi
Line 83  STRONG_ALIAS(_atomic_cas_ulong_ni,_atomi
   
 #if !defined(LOCKDEBUG)  #if !defined(LOCKDEBUG)
   
   #if !defined(__mc68010__)
 /*  /*
  * void mutex_enter(kmutex_t *mtx);   * void mutex_enter(kmutex_t *mtx);
  */   */
 ENTRY(mutex_enter)  ENTRY(mutex_enter)
 #if !defined(__mc68010__)  
         movq    #0,%d0          movq    #0,%d0
         movl    _C_LABEL(curlwp),%d1          movl    _C_LABEL(curlwp),%d1
         movl    4(%sp),%a0          movl    4(%sp),%a0
         casl    %d0,%d1,(%a0)          casl    %d0,%d1,(%a0)
         bnes    1f          bnes    1f
         rts          rts
 #endif /* !__mc68010__ */  
 1:      jra     _C_LABEL(mutex_vector_enter)  1:      jra     _C_LABEL(mutex_vector_enter)
   
 /*  /*
  * void mutex_exit(kmutex_t *mtx);   * void mutex_exit(kmutex_t *mtx);
  */   */
 ENTRY(mutex_exit)  ENTRY(mutex_exit)
 #if !defined(__mc68010__)  
         movl    _C_LABEL(curlwp),%d0          movl    _C_LABEL(curlwp),%d0
         movq    #0,%d1          movq    #0,%d1
         movl    4(%sp),%a0          movl    4(%sp),%a0
         casl    %d0,%d1,(%a0)          casl    %d0,%d1,(%a0)
         bnes    1f          bnes    1f
         rts          rts
 #endif /* !__mc68010__ */  
 1:      jra     _C_LABEL(mutex_vector_exit)  1:      jra     _C_LABEL(mutex_vector_exit)
   #endif /* !__mc68010__ */
   
 #endif  /* !LOCKDEBUG */  #endif  /* !LOCKDEBUG */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb <webmaster@jp.NetBSD.org>