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 2008 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         ANSI_PRAGMA_WEAK2(swapl,atomic_swap_32,function)
  43 #endif
  44 
  45         /*
  46          * NOTE: If atomic_inc_8 and atomic_inc_8_nv are ever
  47          * separated, you need to also edit the libc sparc platform
  48          * specific mapfile and remove the NODYNSORT attribute
  49          * from atomic_inc_8_nv.
  50          */
  51         ENTRY(atomic_inc_8)
  52         ALTENTRY(atomic_inc_8_nv)
  53         ALTENTRY(atomic_inc_uchar)




  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 2008 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         ANSI_PRAGMA_WEAK2(swapl,atomic_swap_32,function)
  44 #endif
  45 
  46         /*
  47          * NOTE: If atomic_inc_8 and atomic_inc_8_nv are ever
  48          * separated, you need to also edit the libc sparc platform
  49          * specific mapfile and remove the NODYNSORT attribute
  50          * from atomic_inc_8_nv.
  51          */
  52         ENTRY(atomic_inc_8)
  53         ALTENTRY(atomic_inc_8_nv)
  54         ALTENTRY(atomic_inc_uchar)