• Home
  • Raw
  • Download

Lines Matching refs:ks

472 static int kgdb_reenter_check(struct kgdb_state *ks)  in kgdb_reenter_check()  argument
481 addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
492 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
500 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
525 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, in kgdb_cpu_enter() argument
536 kgdb_info[ks->cpu].enter_kgdb++; in kgdb_cpu_enter()
537 kgdb_info[ks->cpu].exception_state |= exception_state; in kgdb_cpu_enter()
554 cpu = ks->cpu; in kgdb_cpu_enter()
634 if (kgdb_skipexception(ks->ex_vector, ks->linux_regs)) in kgdb_cpu_enter()
650 if (ks->send_ready) in kgdb_cpu_enter()
651 atomic_set(ks->send_ready, 1); in kgdb_cpu_enter()
685 error = kdb_stub(ks); in kgdb_cpu_enter()
690 error = gdb_serial_stub(ks); in kgdb_cpu_enter()
756 struct kgdb_state *ks = &kgdb_var; in kgdb_handle_exception() local
770 memset(ks, 0, sizeof(struct kgdb_state)); in kgdb_handle_exception()
771 ks->cpu = raw_smp_processor_id(); in kgdb_handle_exception()
772 ks->ex_vector = evector; in kgdb_handle_exception()
773 ks->signo = signo; in kgdb_handle_exception()
774 ks->err_code = ecode; in kgdb_handle_exception()
775 ks->linux_regs = regs; in kgdb_handle_exception()
777 if (kgdb_reenter_check(ks)) in kgdb_handle_exception()
779 if (kgdb_info[ks->cpu].enter_kgdb != 0) in kgdb_handle_exception()
782 ret = kgdb_cpu_enter(ks, regs, DCPU_WANT_MASTER); in kgdb_handle_exception()
806 struct kgdb_state *ks = &kgdb_var; in kgdb_nmicallback() local
810 memset(ks, 0, sizeof(struct kgdb_state)); in kgdb_nmicallback()
811 ks->cpu = cpu; in kgdb_nmicallback()
812 ks->linux_regs = regs; in kgdb_nmicallback()
814 if (kgdb_info[ks->cpu].enter_kgdb == 0 && in kgdb_nmicallback()
816 kgdb_cpu_enter(ks, regs, DCPU_IS_SLAVE); in kgdb_nmicallback()
832 struct kgdb_state *ks = &kgdb_var; in kgdb_nmicallin() local
834 memset(ks, 0, sizeof(struct kgdb_state)); in kgdb_nmicallin()
835 ks->cpu = cpu; in kgdb_nmicallin()
836 ks->ex_vector = trapnr; in kgdb_nmicallin()
837 ks->signo = SIGTRAP; in kgdb_nmicallin()
838 ks->err_code = err_code; in kgdb_nmicallin()
839 ks->linux_regs = regs; in kgdb_nmicallin()
840 ks->send_ready = send_ready; in kgdb_nmicallin()
841 kgdb_cpu_enter(ks, regs, DCPU_WANT_MASTER); in kgdb_nmicallin()