Print this page
5042 stop using deprecated atomic functions

@@ -21,12 +21,10 @@
 /*
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * zuluvm module
  *
  * Provides services required by the XVR-4000 graphics accelerator (zulu)
  * that are not provided by the ddi. See PSARC 2002/231.

@@ -76,11 +74,11 @@
 
 #define ZULUVM_LOCK   mutex_enter(&(zdev->dev_lck))
 #define ZULUVM_UNLOCK mutex_exit(&(zdev->dev_lck))
 
 #define ZULUVM_SET_STATE(_z, b, c) \
-        cas32((uint32_t *)&((_z)->zvm.state), c, b)
+        atomic_cas_32((uint32_t *)&((_z)->zvm.state), c, b)
 #define ZULUVM_GET_STATE(_z) \
         (_z)->zvm.state
 #define ZULUVM_SET_IDLE(_z) \
         (_z)->zvm.state = ZULUVM_STATE_IDLE;