sysrq.c 965 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2001 Chris Emerson (cemerson@chiark.greenend.org.uk)
  3. * Licensed under the GPL
  4. */
  5. #include "linux/kernel.h"
  6. #include "linux/smp.h"
  7. #include "asm/ptrace.h"
  8. #include "sysrq.h"
  9. void show_regs(struct pt_regs_subarch *regs)
  10. {
  11. printk("\n");
  12. printk("show_regs(): insert regs here.\n");
  13. #if 0
  14. printk("\n");
  15. printk("EIP: %04x:[<%08lx>] CPU: %d",0xffff & regs->xcs, regs->eip,
  16. smp_processor_id());
  17. if (regs->xcs & 3)
  18. printk(" ESP: %04x:%08lx",0xffff & regs->xss, regs->esp);
  19. printk(" EFLAGS: %08lx\n", regs->eflags);
  20. printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
  21. regs->eax, regs->ebx, regs->ecx, regs->edx);
  22. printk("ESI: %08lx EDI: %08lx EBP: %08lx",
  23. regs->esi, regs->edi, regs->ebp);
  24. printk(" DS: %04x ES: %04x\n",
  25. 0xffff & regs->xds, 0xffff & regs->xes);
  26. #endif
  27. show_trace(current, &regs->gpr[1]);
  28. }