initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / um / sys-i386 / sysrq.c
blob51333335bb1ce9214180e23495115d0857fc30fe
1 #include "linux/kernel.h"
2 #include "linux/smp.h"
3 #include "linux/sched.h"
4 #include "asm/ptrace.h"
5 #include "sysrq.h"
7 void show_regs(struct pt_regs *regs)
9 printk("\n");
10 printk("EIP: %04lx:[<%08lx>] CPU: %d %s",
11 0xffff & PT_REGS_CS(regs), PT_REGS_IP(regs),
12 smp_processor_id(), print_tainted());
13 if (PT_REGS_CS(regs) & 3)
14 printk(" ESP: %04lx:%08lx", 0xffff & PT_REGS_SS(regs),
15 PT_REGS_SP(regs));
16 printk(" EFLAGS: %08lx\n %s\n", PT_REGS_EFLAGS(regs),
17 print_tainted());
18 printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
19 PT_REGS_EAX(regs), PT_REGS_EBX(regs),
20 PT_REGS_ECX(regs),
21 PT_REGS_EDX(regs));
22 printk("ESI: %08lx EDI: %08lx EBP: %08lx",
23 PT_REGS_ESI(regs), PT_REGS_EDI(regs),
24 PT_REGS_EBP(regs));
25 printk(" DS: %04lx ES: %04lx\n",
26 0xffff & PT_REGS_DS(regs),
27 0xffff & PT_REGS_ES(regs));
29 show_trace((unsigned long *) &regs);