• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/kernel/

Lines Matching refs:regs

134 void dump_trace(struct task_struct *task, struct pt_regs *regs,
153 /* Grab ebp right from our regs */
215 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs,
218 dump_trace(task, regs, stack, &print_trace_ops, log_lvl);
222 void show_trace(struct task_struct *task, struct pt_regs *regs,
225 show_trace_log_lvl(task, regs, stack, "");
228 static void show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
250 show_trace_log_lvl(task, regs, esp, log_lvl);
271 void show_registers(struct pt_regs *regs)
278 esp = (unsigned long) (&regs->esp);
281 if (user_mode_vm(regs)) {
283 esp = regs->esp;
284 ss = regs->xss & 0xffff;
290 smp_processor_id(), 0xffff & regs->xcs, regs->eip,
291 print_tainted(), regs->eflags, init_utsname()->release,
294 print_symbol(KERN_EMERG "EIP is at %s\n", regs->eip);
296 regs->eax, regs->ebx, regs->ecx, regs->edx);
298 regs->esi, regs->edi, regs->ebp, esp);
300 regs->xds & 0xffff, regs->xes & 0xffff, regs->xfs & 0xffff, gs, ss);
315 show_stack_log_lvl(NULL, regs, (unsigned long *)esp, KERN_EMERG);
319 eip = (u8 *)regs->eip - code_prologue;
323 eip = (u8 *)regs->eip;
332 if (eip == (u8 *)regs->eip)
357 void die(const char * str, struct pt_regs * regs, long err)
388 report_bug(regs->eip);
409 if (notify_die(DIE_OOPS, str, regs, err,
412 show_registers(regs);
414 esp = (unsigned long) (&regs->esp);
416 if (user_mode(regs)) {
417 esp = regs->esp;
418 ss = regs->xss & 0xffff;
420 printk(KERN_EMERG "EIP: [<%08lx>] ", regs->eip);
421 print_symbol("%s", regs->eip);
425 regs = NULL;
433 if (!regs)
437 crash_kexec(regs);
449 static inline void die_if_kernel(const char * str, struct pt_regs * regs, long err)
451 if (!user_mode_vm(regs))
452 die(str, regs, err);
456 struct pt_regs * regs, long error_code,
461 if (regs->eflags & VM_MASK) {
467 if (!user_mode(regs))
491 if (!fixup_exception(regs)) {
494 die(str, regs, error_code);
500 int ret = handle_vm86_trap((struct kernel_vm86_regs *) regs, error_code, trapnr);
507 fastcall void do_##name(struct pt_regs * regs, long error_code) \
509 if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
512 do_trap(trapnr, signr, str, 0, regs, error_code, NULL); \
516 fastcall void do_##name(struct pt_regs * regs, long error_code) \
523 if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
526 do_trap(trapnr, signr, str, 0, regs, error_code, &info); \
530 fastcall void do_##name(struct pt_regs * regs, long error_code) \
532 if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
535 do_trap(trapnr, signr, str, 1, regs, error_code, NULL); \
539 fastcall void do_##name(struct pt_regs * regs, long error_code) \
546 if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
549 do_trap(trapnr, signr, str, 1, regs, error_code, &info); \
552 DO_VM86_ERROR_INFO( 0, SIGFPE, "divide error", divide_error, FPE_INTDIV, regs->eip)
558 DO_ERROR_INFO( 6, SIGILL, "invalid opcode", invalid_op, ILL_ILLOPN, regs->eip)
566 fastcall void __kprobes do_general_protection(struct pt_regs * regs,
600 if (regs->eflags & VM_MASK)
603 if (!user_mode(regs))
613 handle_vm86_fault((struct kernel_vm86_regs *) regs, error_code);
617 if (!fixup_exception(regs)) {
620 if (notify_die(DIE_GPF, "general protection fault", regs,
623 die("general protection fault", regs, error_code);
628 mem_parity_error(unsigned char reason, struct pt_regs * regs)
643 io_check_error(unsigned char reason, struct pt_regs * regs)
648 show_registers(regs);
660 unknown_nmi_error(unsigned char reason, struct pt_regs * regs)
681 void __kprobes die_nmi(struct pt_regs *regs, const char *msg)
683 if (notify_die(DIE_NMIWATCHDOG, msg, regs, 0, 2, SIGINT) ==
695 smp_processor_id(), regs->eip);
696 show_registers(regs);
704 if (!user_mode_vm(regs)) {
706 crash_kexec(regs);
712 static __kprobes void default_do_nmi(struct pt_regs * regs)
721 if (notify_die(DIE_NMI_IPI, "nmi_ipi", regs, reason, 2, SIGINT)
729 if (nmi_watchdog_tick(regs, reason))
731 if (!do_nmi_callback(regs, smp_processor_id()))
733 unknown_nmi_error(reason, regs);
737 if (notify_die(DIE_NMI, "nmi", regs, reason, 2, SIGINT) == NOTIFY_STOP)
740 mem_parity_error(reason, regs);
742 io_check_error(reason, regs);
750 fastcall __kprobes void do_nmi(struct pt_regs * regs, long error_code)
760 default_do_nmi(regs);
766 fastcall void __kprobes do_int3(struct pt_regs *regs, long error_code)
768 if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP)
773 restore_interrupts(regs);
774 do_trap(3, SIGTRAP, "int3", 1, regs, error_code, NULL);
800 fastcall void __kprobes do_debug(struct pt_regs * regs, long error_code)
807 if (notify_die(DIE_DEBUG, "debug", regs, condition, error_code,
811 if (regs->eflags & X86_EFLAGS_IF)
820 if (regs->eflags & VM_MASK)
836 if (!user_mode(regs))
841 send_sigtrap(tsk, regs, error_code);
851 handle_vm86_trap((struct kernel_vm86_regs *) regs, error_code, 1);
856 regs->eflags &= ~TF_MASK;
884 * status. 0x3f is the exception bits in these regs, 0x200 is the
924 fastcall void do_coprocessor_error(struct pt_regs * regs, long error_code)
927 math_error((void __user *)regs->eip);
978 fastcall void do_simd_coprocessor_error(struct pt_regs * regs,
984 simd_math_error((void __user *)regs->eip);
990 if (regs->eflags & VM_MASK) {
991 handle_vm86_fault((struct kernel_vm86_regs *)regs,
997 die_if_kernel("cache flush denied", regs, error_code);
1002 fastcall void do_spurious_interrupt_bug(struct pt_regs * regs,