Lines Matching refs:ks
37 int kdb_common_init_state(struct kgdb_state *ks) in kdb_common_init_state() argument
40 kdb_current_task = kgdb_info[ks->cpu].task; in kdb_common_init_state()
41 kdb_current_regs = kgdb_info[ks->cpu].debuggerinfo; in kdb_common_init_state()
53 int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument
57 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub()
62 kdb_ks = ks; in kdb_stub()
66 addr = instruction_pointer(ks->linux_regs); in kdb_stub()
68 ks->pass_exception = 0; in kdb_stub()
72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub()
82 if (addr != instruction_pointer(ks->linux_regs)) in kdb_stub()
83 kgdb_arch_set_pc(ks->linux_regs, addr); in kdb_stub()
109 if (reason != KDB_REASON_BREAK && ks->ex_vector == 0 && in kdb_stub()
110 ks->signo == SIGTRAP) { in kdb_stub()
116 kdb_common_init_state(ks); in kdb_stub()
121 if (ks->err_code == DIE_OOPS || reason == KDB_REASON_OOPS) { in kdb_stub()
122 ks->pass_exception = 1; in kdb_stub()
135 ks->err_code, db_result, ks->linux_regs); in kdb_stub()
148 kdb_bp_install(ks->linux_regs); in kdb_stub()
151 gdbstub_state(ks, "s"); in kdb_stub()
153 gdbstub_state(ks, "c"); in kdb_stub()
158 kgdb_info[ks->cpu].ret_state = gdbstub_state(ks, "e"); in kdb_stub()
159 if (ks->pass_exception) in kdb_stub()
160 kgdb_info[ks->cpu].ret_state = 1; in kdb_stub()
170 return kgdb_info[ks->cpu].ret_state; in kdb_stub()