Print this page
5043 remove deprecated atomic functions' prototypes


  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27         .file   "atomic.s"
  28 
  29 #include <sys/asm_linkage.h>
  30 
  31 #if defined(_KERNEL)
  32         /*
  33          * Legacy kernel interfaces; they will go away (eventually).

  34          */
  35         ANSI_PRAGMA_WEAK2(cas8,atomic_cas_8,function)
  36         ANSI_PRAGMA_WEAK2(cas32,atomic_cas_32,function)
  37         ANSI_PRAGMA_WEAK2(cas64,atomic_cas_64,function)
  38         ANSI_PRAGMA_WEAK2(caslong,atomic_cas_ulong,function)
  39         ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
  40         ANSI_PRAGMA_WEAK2(atomic_and_long,atomic_and_ulong,function)
  41         ANSI_PRAGMA_WEAK2(atomic_or_long,atomic_or_ulong,function)
  42 #endif
  43 
  44         ENTRY(atomic_inc_8)
  45         ALTENTRY(atomic_inc_uchar)
  46         movl    4(%esp), %eax
  47         lock
  48         incb    (%eax)
  49         ret
  50         SET_SIZE(atomic_inc_uchar)
  51         SET_SIZE(atomic_inc_8)
  52 
  53         ENTRY(atomic_inc_16)




  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27         .file   "atomic.s"
  28 
  29 #include <sys/asm_linkage.h>
  30 
  31 #if defined(_KERNEL)
  32         /*
  33          * Legacy kernel interfaces; they will go away the moment our closed
  34          * bins no longer require them.
  35          */
  36         ANSI_PRAGMA_WEAK2(cas8,atomic_cas_8,function)
  37         ANSI_PRAGMA_WEAK2(cas32,atomic_cas_32,function)
  38         ANSI_PRAGMA_WEAK2(cas64,atomic_cas_64,function)
  39         ANSI_PRAGMA_WEAK2(caslong,atomic_cas_ulong,function)
  40         ANSI_PRAGMA_WEAK2(casptr,atomic_cas_ptr,function)
  41         ANSI_PRAGMA_WEAK2(atomic_and_long,atomic_and_ulong,function)
  42         ANSI_PRAGMA_WEAK2(atomic_or_long,atomic_or_ulong,function)
  43 #endif
  44 
  45         ENTRY(atomic_inc_8)
  46         ALTENTRY(atomic_inc_uchar)
  47         movl    4(%esp), %eax
  48         lock
  49         incb    (%eax)
  50         ret
  51         SET_SIZE(atomic_inc_uchar)
  52         SET_SIZE(atomic_inc_8)
  53 
  54         ENTRY(atomic_inc_16)