summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4/os/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4/os/machdep.c')
-rw-r--r--usr/src/uts/sun4/os/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/sun4/os/machdep.c b/usr/src/uts/sun4/os/machdep.c
index 60d6f07f53..e6e4875da6 100644
--- a/usr/src/uts/sun4/os/machdep.c
+++ b/usr/src/uts/sun4/os/machdep.c
@@ -550,7 +550,7 @@ cpu_intr_swtch_enter(kthread_id_t t)
do {
start = t->t_intr_start;
interval = CLOCK_TICK_COUNTER() - start;
- } while (cas64(&t->t_intr_start, start, 0) != start);
+ } while (atomic_cas_64(&t->t_intr_start, start, 0) != start);
cpu = CPU;
if (cpu->cpu_m.divisor > 1)
interval *= cpu->cpu_m.divisor;
@@ -577,7 +577,8 @@ cpu_intr_swtch_exit(kthread_id_t t)
do {
ts = t->t_intr_start;
- } while (cas64(&t->t_intr_start, ts, CLOCK_TICK_COUNTER()) != ts);
+ } while (atomic_cas_64(&t->t_intr_start, ts, CLOCK_TICK_COUNTER()) !=
+ ts);
}