PERFORCE change 76457 for review

John Baldwin jhb at FreeBSD.org
Tue May 3 13:41:38 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=76457

Change 76457 by jhb at jhb_slimer on 2005/05/03 20:40:51

	Catch up to new atomic_foo_ptr() parameter types.

Affected files ...

.. //depot/projects/smpng/sys/dev/hatm/if_hatm_intr.c#10 edit

Differences ...

==== //depot/projects/smpng/sys/dev/hatm/if_hatm_intr.c#10 (text+ko) ====

@@ -115,7 +115,8 @@
 {
 	for (;;) {
 		buf->link = *list;
-		if (atomic_cmpset_ptr(list, buf->link, buf))
+		if (atomic_cmpset_ptr((uintptr_t *)list, (uintptr_t)buf->link,
+		    (uintptr_t)buf))
 			break;
 	}
 }
@@ -128,7 +129,8 @@
 	for (;;) {
 		if ((buf = sc->mbuf_list[g]) == NULL)
 			break;
-		if (atomic_cmpset_ptr(&sc->mbuf_list[g], buf, buf->link))
+		if (atomic_cmpset_ptr((uintptr_t *)&sc->mbuf_list[g],
+			(uintptr_t)buf, (uintptr_t)buf->link))
 			break;
 	}
 	if (buf == NULL) {
@@ -136,7 +138,8 @@
 		for (;;) {
 			if ((buf = sc->mbuf_list[g]) == NULL)
 				break;
-			if (atomic_cmpset_ptr(&sc->mbuf_list[g], buf, buf->link))
+			if (atomic_cmpset_ptr((uintptr_t *)&sc->mbuf_list[g],
+			    (uintptr_t)buf, (uintptr_t)buf->link))
 				break;
 		}
 	}


More information about the p4-projects mailing list