Print this page
5042 stop using deprecated atomic functions

*** 21,32 **** /* * 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. --- 21,30 ----
*** 76,86 **** #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) #define ZULUVM_GET_STATE(_z) \ (_z)->zvm.state #define ZULUVM_SET_IDLE(_z) \ (_z)->zvm.state = ZULUVM_STATE_IDLE; --- 74,84 ---- #define ZULUVM_LOCK mutex_enter(&(zdev->dev_lck)) #define ZULUVM_UNLOCK mutex_exit(&(zdev->dev_lck)) #define ZULUVM_SET_STATE(_z, b, c) \ ! 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;