[BACK]Return to atomic_or.S CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / common / lib / libc / arch / m68k / atomic

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

Diff for /src/common/lib/libc/arch/m68k/atomic/atomic_or.S between version 1.1.2.2 and 1.2

version 1.1.2.2, 2007/04/22 05:12:42 version 1.2, 2007/11/29 17:09:33
Line 40 
Line 40 
   
         .text          .text
   
 ENTRY_NOPROFILE(_atomic_or_8)  
         movl    %sp@(4), %a0  
         movb    %sp@(11), %d0  
         orb     %d0, %a0@  
         rts  
 ATOMIC_OP_ALIAS(atomic_or_8,_atomic_or_8)  
 ATOMIC_OP_ALIAS(atomic_or_uchar,_atomic_or_8)  
 STRONG_ALIAS(_atomic_or_uchar,_atomic_or_8)  
   
 ENTRY_NOPROFILE(_atomic_or_8_nv)  
         movl    %sp@(4), %a0  
 1:      movb    %a0@, %d0  
         movb    %d0, %d1  
         orb     %sp@(11), %d0  
         casb    %d1, %d0, %a0@  
         bne     1b  
         andl    #0xff, %d0  
         rts  
 ATOMIC_OP_ALIAS(atomic_or_8_nv,_atomic_or_8_nv)  
 ATOMIC_OP_ALIAS(atomic_or_uchar_nv,_atomic_or_8_nv)  
 STRONG_ALIAS(_atomic_or_uchar_nv,_atomic_or_8_nv)  
   
 ENTRY_NOPROFILE(_atomic_or_16)  
         movl    %sp@(4), %a0  
         movw    %sp@(10), %d0  
         orw     %d0, %a0@  
         rts  
 ATOMIC_OP_ALIAS(atomic_or_16,_atomic_or_16)  
 ATOMIC_OP_ALIAS(atomic_or_ushort,_atomic_or_16)  
 STRONG_ALIAS(_atomic_or_ushort,_atomic_or_16)  
   
 ENTRY_NOPROFILE(_atomic_or_16_nv)  
         movl    %sp@(4), %a0  
 1:      movw    %a0@, %d0  
         movw    %d0, %d1  
         orw     %sp@(10), %d0  
         casw    %d1, %d0, %a0@  
         bne     1b  
         andl    #0xffff, %d0  
         rts  
 ATOMIC_OP_ALIAS(atomic_or_16_nv,_atomic_or_16_nv)  
 ATOMIC_OP_ALIAS(atomic_or_ushort_nv,_atomic_or_16_nv)  
 STRONG_ALIAS(_atomic_or_ushort_nv,_atomic_or_16_nv)  
   
 ENTRY_NOPROFILE(_atomic_or_32)  ENTRY_NOPROFILE(_atomic_or_32)
         movl    %sp@(4), %a0          movl    %sp@(4), %a0
         movl    %sp@(8), %d0          movl    %sp@(8), %d0

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>