Print this page
5042 stop using deprecated atomic functions
*** 21,32 ****
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/cpuvar.h>
#include <sys/kdi_impl.h>
#include <sys/reboot.h>
#include <sys/errno.h>
#include <sys/atomic.h>
--- 21,30 ----
*** 149,157 ****
new = KDI_DTSTATE_IDLE;
break;
default:
return (EINVAL);
}
! } while (cas32((uint_t *)&kdi_dtrace_state, cur, new) != cur);
return (0);
}
--- 147,155 ----
new = KDI_DTSTATE_IDLE;
break;
default:
return (EINVAL);
}
! } while (atomic_cas_32((uint_t *)&kdi_dtrace_state, cur, new) != cur);
return (0);
}