Print this page
atomic: remove old weak symbols
These symbols have been depricated for a really long time on x86 and SPARC.
They exist as weak symbols to allow old binaries to still work.  On ARM,
these old binaries never existed to begin with and so we don't have to
provide these legacy symbols.

Split Close
Expand all
Collapse all
          --- old/usr/src/common/atomic/arm/atomic.s
          +++ new/usr/src/common/atomic/arm/atomic.s
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   */
  22   22  
  23   23  #include <sys/asm_linkage.h>
  24   24  #include <sys/atomic_impl.h>
  25   25  
  26   26  /*
  27   27   * XXX We probably want some kind of backoff built in to these routines at some
  28   28   * point.
  29   29   */
  30   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   31          /*
  46   32           * NOTE: If atomic_inc_8 and atomic_inc_8_nv are ever
  47   33           * separated, you need to also edit the libc arm platform
  48   34           * specific mapfile and remove the NODYNSORT attribute
  49   35           * from atomic_inc_8_nv.
  50   36           */
  51   37          ENTRY(atomic_inc_8)
  52   38          ALTENTRY(atomic_inc_8_nv)
  53   39          ALTENTRY(atomic_inc_uchar)
  54   40          ALTENTRY(atomic_inc_uchar_nv)
↓ open down ↓ 631 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX