Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/synch32.h
          +++ new/usr/src/uts/intel/sys/synch32.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_SYNCH32_H
  28   28  #define _SYS_SYNCH32_H
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   30  #ifdef  __cplusplus
  33   31  extern "C" {
  34   32  #endif
  35   33  
  36   34  /* special defines for LWP mutexes */
  37   35  #define mutex_flag              flags.flag1
  38   36  #define mutex_ceiling           flags.ceiling
  39   37  #define mutex_type              flags.mbcp_type_un.mtype_rcount.count_type1
  40   38  #define mutex_rcount            flags.mbcp_type_un.mtype_rcount.count_type2
  41   39  #define mutex_magic             flags.magic
  42   40  #define mutex_owner             data
  43   41  /* used to atomically operate on whole word via cas or swap instruction */
  44   42  #define mutex_lockword          lock.lock32.lockword
  45      -/* this requires cas64 */
       43 +/* this requires atomic_cas_64 */
  46   44  #define mutex_lockword64        lock.owner64
  47   45  /* these are bytes */
  48   46  #define mutex_lockw             lock.lock64.pad[7]
  49   47  #define mutex_waiters           lock.lock64.pad[6]
  50   48  #define mutex_spinners          lock.lock64.pad[5]
  51   49  
  52   50  /* process-shared lock owner pid */
  53   51  #define mutex_ownerpid          lock.lock32.ownerpid
  54   52  
  55   53  /* Max. recusrion count for recursive mutexes */
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX