Home
last modified time | relevance | path

Searched refs:watchnum (Results 1 – 3 of 3) sorted by relevance

/freebsd/lib/libsys/i386/
H A Di386_set_watch.c35 i386_set_watch(int watchnum, unsigned int watchaddr, int size, in i386_set_watch() argument
41 if (watchnum == -1) { in i386_set_watch()
46 watchnum = i; in i386_set_watch()
74 DBREG_DRX(d,7) &= ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16))); in i386_set_watch()
77 DBREG_DRX(d,watchnum) = watchaddr; in i386_set_watch()
80 DBREG_DRX(d,7) |= (0x2 << (watchnum*2)) | (mask << (watchnum*4+16)); in i386_set_watch()
82 return watchnum; in i386_set_watch()
H A Di386_clr_watch.c35 i386_clr_watch(int watchnum, struct dbreg * d) in i386_clr_watch() argument
38 if (watchnum < 0 || watchnum >= 4) in i386_clr_watch()
41 DBREG_DRX(d,7) = DBREG_DRX(d,7) & ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16))); in i386_clr_watch()
42 DBREG_DRX(d,watchnum) = 0; in i386_clr_watch()
/freebsd/sys/x86/x86/
H A Ddbreg.c54 dbreg_set_watchreg(int watchnum, vm_offset_t watchaddr, vm_size_t size, in dbreg_set_watchreg() argument
59 MPASS(watchnum >= 0 && watchnum < NDBREGS); in dbreg_set_watchreg()
88 d->dr[7] &= ~DBREG_DR7_MASK(watchnum); in dbreg_set_watchreg()
91 DBREG_DRX(d, watchnum) = watchaddr; in dbreg_set_watchreg()
94 d->dr[7] |= DBREG_DR7_SET(watchnum, len, access, in dbreg_set_watchreg()
102 dbreg_clr_watchreg(int watchnum, struct dbreg *d) in dbreg_clr_watchreg() argument
104 MPASS(watchnum >= 0 && watchnum < NDBREGS); in dbreg_clr_watchreg()
106 d->dr[7] &= ~DBREG_DR7_MASK(watchnum); in dbreg_clr_watchreg()
107 DBREG_DRX(d, watchnum) = 0; in dbreg_clr_watchreg()