Author: jhb
Date: Mon Mar 29 18:47:04 2010
New Revision: 205850
URL: http://svn.freebsd.org/changeset/base/205850

Log:
  Cosmetic tweak to use a type suffix instead of a cast to force a constant
  to be a long.

Modified:
  head/sys/amd64/include/reg.h

Modified: head/sys/amd64/include/reg.h
==============================================================================
--- head/sys/amd64/include/reg.h        Mon Mar 29 18:35:55 2010        
(r205849)
+++ head/sys/amd64/include/reg.h        Mon Mar 29 18:47:04 2010        
(r205850)
@@ -109,7 +109,7 @@ struct dbreg {
 #define        DBREG_DR7_EXEC          0x00    /* break on execute       */
 #define        DBREG_DR7_WRONLY        0x01    /* break on write         */
 #define        DBREG_DR7_RDWR          0x03    /* break on read or write */
-#define        DBREG_DR7_MASK(i)       ((u_long)0xf << ((i) * 4 + 16) | 0x3 << 
(i) * 2)
+#define        DBREG_DR7_MASK(i)       (0xful << ((i) * 4 + 16) | 0x3 << (i) * 
2)
 #define        DBREG_DR7_SET(i, len, access, enable)                           
\
        ((u_long)((len) << 2 | (access)) << ((i) * 4 + 16) | (enable) << (i) * 
2)
 #define        DBREG_DR7_GD            0x2000
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to