svn commit: r262634 - head/sys/dev/etherswitch/arswitch
Adrian Chadd
adrian at FreeBSD.org
Sat Mar 1 00:11:46 UTC 2014
Author: adrian
Date: Sat Mar 1 00:11:45 2014
New Revision: 262634
URL: http://svnweb.freebsd.org/changeset/base/262634
Log:
Be paranoid about bit operations here.
Modified:
head/sys/dev/etherswitch/arswitch/arswitchreg.h
Modified: head/sys/dev/etherswitch/arswitch/arswitchreg.h
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitchreg.h Sat Mar 1 00:09:36 2014 (r262633)
+++ head/sys/dev/etherswitch/arswitch/arswitchreg.h Sat Mar 1 00:11:45 2014 (r262634)
@@ -296,7 +296,7 @@
*/
/* XXX Linux define compatibility stuff */
-#define BITM(_count) ((1 << _count) - 1)
+#define BITM(_count) ((1UL << _count) - 1)
#define BITS(_shift, _count) (BITM(_count) << _shift)
#define AR934X_REG_OPER_MODE0 0x04
More information about the svn-src-all
mailing list