summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/i386_clr_watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/i386/sys/i386_clr_watch.c')
-rw-r--r--lib/libc/i386/sys/i386_clr_watch.c2
1 files changed, 1 insertions, 1 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;
OpenPOWER on IntegriCloud