diff options
author | jhb <jhb@FreeBSD.org> | 2010-03-29 18:47:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-03-29 18:47:04 +0000 |
commit | 78907598c04661c36428e3f5b02ee6a80af4aac5 (patch) | |
tree | f357a74b31962d567a9a81eae7ff7d38d5d2c177 /sys/amd64/include/reg.h | |
parent | 93d13fc5c9706208c2dd84aadf3b665f13dd35be (diff) | |
download | FreeBSD-src-78907598c04661c36428e3f5b02ee6a80af4aac5.zip FreeBSD-src-78907598c04661c36428e3f5b02ee6a80af4aac5.tar.gz |
Cosmetic tweak to use a type suffix instead of a cast to force a constant
to be a long.
Diffstat (limited to 'sys/amd64/include/reg.h')
-rw-r--r-- | sys/amd64/include/reg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index 4a83918..5920843 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -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 |