Lines Matching refs:dr6
818 unsigned long dr6; in debug_read_clear_dr6() local
831 get_debugreg(dr6, 6); in debug_read_clear_dr6()
833 dr6 ^= DR6_RESERVED; /* Flip to positive polarity */ in debug_read_clear_dr6()
835 return dr6; in debug_read_clear_dr6()
863 static bool notify_debug(struct pt_regs *regs, unsigned long *dr6) in notify_debug() argument
872 if (notify_die(DIE_DEBUG, "debug", regs, (long)dr6, 0, SIGTRAP) == NOTIFY_STOP) in notify_debug()
879 unsigned long dr6) in exc_debug_kernel() argument
920 if ((dr6 & DR_STEP) && is_sysenter_singlestep(regs)) in exc_debug_kernel()
921 dr6 &= ~DR_STEP; in exc_debug_kernel()
926 if (!dr6) in exc_debug_kernel()
929 if (notify_debug(regs, &dr6)) in exc_debug_kernel()
943 if (WARN_ON_ONCE(dr6 & DR_STEP)) in exc_debug_kernel()
953 unsigned long dr6) in exc_debug_user() argument
982 current->thread.virtual_dr6 = (dr6 & DR_STEP); in exc_debug_user()
996 icebp = !dr6; in exc_debug_user()
998 if (notify_debug(regs, &dr6)) in exc_debug_user()
1010 if (dr6 & DR_BUS_LOCK) in exc_debug_user()
1014 dr6 |= current->thread.virtual_dr6; in exc_debug_user()
1015 if (dr6 & (DR_STEP | DR_TRAP_BITS) || icebp) in exc_debug_user()
1016 send_sigtrap(regs, 0, get_si_code(dr6)); in exc_debug_user()
1041 unsigned long dr6 = debug_read_clear_dr6(); in DEFINE_IDTENTRY_RAW() local
1044 exc_debug_user(regs, dr6); in DEFINE_IDTENTRY_RAW()
1046 exc_debug_kernel(regs, dr6); in DEFINE_IDTENTRY_RAW()