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

/freebsd-13-stable/lib/libc/i386/sys/
H A Di386_clr_watch.c38 i386_clr_watch(int watchnum, struct dbreg * d) argument
41 if (watchnum < 0 || watchnum >= 4)
44 DBREG_DRX(d,7) = DBREG_DRX(d,7) & ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
45 DBREG_DRX(d,watchnum) = 0;
H A Di386_set_watch.c38 i386_set_watch(int watchnum, unsigned int watchaddr, int size, argument
44 if (watchnum == -1) {
49 watchnum = i;
77 DBREG_DRX(d,7) &= ~((0x3 << (watchnum*2)) | (0x0f << (watchnum*4+16)));
79 /* set drN register to the address, N=watchnum */
80 DBREG_DRX(d,watchnum) = watchaddr;
83 DBREG_DRX(d,7) |= (0x2 << (watchnum*2)) | (mask << (watchnum*4+16));
85 return watchnum;
[all...]
/freebsd-13-stable/sys/x86/x86/
H A Ddbreg.c50 * Set a watchpoint in the debug register denoted by 'watchnum'.
53 dbreg_set_watchreg(int watchnum, vm_offset_t watchaddr, vm_size_t size, argument
58 MPASS(watchnum >= 0 && watchnum < NDBREGS);
87 d->dr[7] &= ~DBREG_DR7_MASK(watchnum);
89 /* set drN register to the address, N=watchnum */
90 DBREG_DRX(d, watchnum) = watchaddr;
93 d->dr[7] |= DBREG_DR7_SET(watchnum, len, access,
98 * Remove a watchpoint from the debug register denoted by 'watchnum'.
101 dbreg_clr_watchreg(int watchnum, struc argument
[all...]

Completed in 220 milliseconds