diff options
author | alfred <alfred@FreeBSD.org> | 2002-11-07 22:42:31 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-11-07 22:42:31 +0000 |
commit | 815055f65a6b5a1b1a4d63fcf25ff85609fc211f (patch) | |
tree | 19d576d984e5cd48ecb294dc93cbdf4e8d50a1fe /sys | |
parent | 602ba7d5eb8740e3e545bce0eb8e03c4ab237859 (diff) | |
download | FreeBSD-src-815055f65a6b5a1b1a4d63fcf25ff85609fc211f.zip FreeBSD-src-815055f65a6b5a1b1a4d63fcf25ff85609fc211f.tar.gz |
Properly parenthesize the DBREG_DRX macro's variables to allow for
DBREG_DRX(&dbregs, n) usage.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/reg.h | 2 | ||||
-rw-r--r-- | sys/i386/include/reg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index 848c8fe..56f0f91 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -132,7 +132,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_DRX(d,x) (d->dr[(x)]) /* reference dr0 - dr7 by +#define DBREG_DRX(d,x) ((d)->dr[(x)]) /* reference dr0 - dr7 by register number */ diff --git a/sys/i386/include/reg.h b/sys/i386/include/reg.h index 848c8fe..56f0f91 100644 --- a/sys/i386/include/reg.h +++ b/sys/i386/include/reg.h @@ -132,7 +132,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_DRX(d,x) (d->dr[(x)]) /* reference dr0 - dr7 by +#define DBREG_DRX(d,x) ((d)->dr[(x)]) /* reference dr0 - dr7 by register number */ |