Print this page
5042 stop using deprecated atomic functions

@@ -241,11 +241,11 @@
 mutex_panic(char *msg, mutex_impl_t *lp)
 {
         if (panicstr)
                 return;
 
-        if (casptr(&panic_mutex_addr, NULL, lp) == NULL)
+        if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL)
                 panic_mutex = *lp;
 
         panic("%s, lp=%p owner=%p thread=%p",
             msg, (void *)lp, (void *)MUTEX_OWNER(&panic_mutex),
             (void *)curthread);