PERFORCE change 129523 for review
Kip Macy
kmacy at FreeBSD.org
Sun Nov 25 15:48:12 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=129523
Change 129523 by kmacy at kmacy:storage:toestack on 2007/11/25 23:48:11
fix test_and_clear to have the intended effect of tested and clearing
a bit by index
Affected files ...
.. //depot/projects/toestack/sys/dev/cxgb/cxgb_osdep.h#11 edit
Differences ...
==== //depot/projects/toestack/sys/dev/cxgb/cxgb_osdep.h#11 (text+ko) ====
@@ -299,7 +299,7 @@
#define t3_os_sleep(x) DELAY((x) * 1000)
-#define test_and_clear_bit(bit, p) atomic_cmpset_int((p), ((*(p)) | bit), ((*(p)) & ~bit))
+#define test_and_clear_bit(bit, p) atomic_cmpset_int((p), ((*(p)) | (1<<bit)), ((*(p)) & ~(1<<bit)))
#define max_t(type, a, b) (type)max((a), (b))
#define net_device ifnet
More information about the p4-projects
mailing list