summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2002-10-21 03:47:22 +0000
committersam <sam@FreeBSD.org>2002-10-21 03:47:22 +0000
commit26547b3a00be4300154d72015c48353a59937ed1 (patch)
tree5508d40ab655f55d121074efad21e835fac13ba0
parent6d2852e4eb7fb2e0b6a73ee0e8b70e46d6cc6d19 (diff)
downloadFreeBSD-src-26547b3a00be4300154d72015c48353a59937ed1.zip
FreeBSD-src-26547b3a00be4300154d72015c48353a59937ed1.tar.gz
track gratuitous change to sys/i386/include/reg.h
-rw-r--r--lib/libc/i386/sys/i386_clr_watch.c2
-rw-r--r--lib/libc/i386/sys/i386_set_watch.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/i386/sys/i386_clr_watch.c b/lib/libc/i386/sys/i386_clr_watch.c
index ae2ed79..721c1b8 100644
--- a/lib/libc/i386/sys/i386_clr_watch.c
+++ b/lib/libc/i386/sys/i386_clr_watch.c
@@ -39,7 +39,7 @@ i386_clr_watch(int watchnum, struct dbreg * d)
if (watchnum < 0 || watchnum >= 4)
return -1;
- d->dr7 = d->dr7 & ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
+ DBREG_DRX(d,7) = DBREG_DRX(d,7) & ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
DBREG_DRX(d,watchnum) = 0;
return 0;
diff --git a/lib/libc/i386/sys/i386_set_watch.c b/lib/libc/i386/sys/i386_set_watch.c
index 0767cc9..cc1b8ed 100644
--- a/lib/libc/i386/sys/i386_set_watch.c
+++ b/lib/libc/i386/sys/i386_set_watch.c
@@ -41,7 +41,7 @@ i386_set_watch(int watchnum, unsigned int watchaddr, int size,
if (watchnum == -1) {
for (i = 0, mask = 0x3; i < 4; i++, mask <<= 2)
- if ((d->dr7 & mask) == 0)
+ if ((DBREG_DRX(d,7) & mask) == 0)
break;
if (i < 4)
watchnum = i;
@@ -72,13 +72,13 @@ i386_set_watch(int watchnum, unsigned int watchaddr, int size,
mask |= access;
/* clear the bits we are about to affect */
- d->dr7 &= ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
+ DBREG_DRX(d,7) &= ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
/* set drN register to the address, N=watchnum */
DBREG_DRX(d,watchnum) = watchaddr;
/* enable the watchpoint */
- d->dr7 |= (0x2 << (watchnum*2)) | (mask << (watchnum*4+16));
+ DBREG_DRX(d,7) |= (0x2 << (watchnum*2)) | (mask << (watchnum*4+16));
return watchnum;
}
OpenPOWER on IntegriCloud