Print this page
5043 remove deprecated atomic functions' prototypes

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/atomic.h
          +++ new/usr/src/uts/common/sys/atomic.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_ATOMIC_H
  28   28  #define _SYS_ATOMIC_H
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   30  #include <sys/types.h>
  33   31  #include <sys/inttypes.h>
  34   32  
  35   33  #ifdef  __cplusplus
  36   34  extern "C" {
  37   35  #endif
  38   36  
  39   37  #if defined(_KERNEL) && defined(__GNUC__) && defined(_ASM_INLINES) && \
  40   38          (defined(__i386) || defined(__amd64))
  41   39  #include <asm/atomic.h>
↓ open down ↓ 366 lines elided ↑ open up ↑
 408  406  #if defined(_LP64) || defined(_ILP32)
 409  407  #define atomic_add_ip           atomic_add_long
 410  408  #define atomic_add_ip_nv        atomic_add_long_nv
 411  409  #define casip                   atomic_cas_ulong
 412  410  #endif
 413  411  
 414  412  #if defined(__sparc)
 415  413  extern uint8_t ldstub(uint8_t *);
 416  414  #endif
 417  415  
 418      -/*
 419      - * Legacy kernel interfaces; they will go away (eventually).
 420      - */
 421      -extern uint8_t cas8(uint8_t *, uint8_t, uint8_t);
 422      -extern uint32_t cas32(uint32_t *, uint32_t, uint32_t);
 423      -extern uint64_t cas64(uint64_t *, uint64_t, uint64_t);
 424      -extern ulong_t caslong(ulong_t *, ulong_t, ulong_t);
 425      -extern void *casptr(void *, void *, void *);
 426      -extern void atomic_and_long(ulong_t *, ulong_t);
 427      -extern void atomic_or_long(ulong_t *, ulong_t);
 428      -#if defined(__sparc)
 429      -extern uint32_t swapl(uint32_t *, uint32_t);
 430      -#endif
 431      -
 432  416  #endif  /* _KERNEL */
 433  417  
 434  418  #ifdef  __cplusplus
 435  419  }
 436  420  #endif
 437  421  
 438  422  #endif  /* _SYS_ATOMIC_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX