diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/process.c | 15 | ||||
-rw-r--r-- | arch/arm/kernel/traps.c | 8 |
2 files changed, 13 insertions, 10 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index dbd8ca89b385..26eacd3e5def 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -168,12 +168,11 @@ void machine_restart(char * __unused) | |||
168 | 168 | ||
169 | EXPORT_SYMBOL(machine_restart); | 169 | EXPORT_SYMBOL(machine_restart); |
170 | 170 | ||
171 | void show_regs(struct pt_regs * regs) | 171 | void __show_regs(struct pt_regs *regs) |
172 | { | 172 | { |
173 | unsigned long flags; | 173 | unsigned long flags = condition_codes(regs); |
174 | |||
175 | flags = condition_codes(regs); | ||
176 | 174 | ||
175 | printk("CPU: %d\n", smp_processor_id()); | ||
177 | print_symbol("PC is at %s\n", instruction_pointer(regs)); | 176 | print_symbol("PC is at %s\n", instruction_pointer(regs)); |
178 | print_symbol("LR is at %s\n", regs->ARM_lr); | 177 | print_symbol("LR is at %s\n", regs->ARM_lr); |
179 | printk("pc : [<%08lx>] lr : [<%08lx>] %s\n" | 178 | printk("pc : [<%08lx>] lr : [<%08lx>] %s\n" |
@@ -213,6 +212,14 @@ void show_regs(struct pt_regs * regs) | |||
213 | } | 212 | } |
214 | } | 213 | } |
215 | 214 | ||
215 | void show_regs(struct pt_regs * regs) | ||
216 | { | ||
217 | printk("\n"); | ||
218 | printk("Pid: %d, comm: %20s\n", current->pid, current->comm); | ||
219 | __show_regs(regs); | ||
220 | __backtrace(); | ||
221 | } | ||
222 | |||
216 | void show_fpregs(struct user_fp *regs) | 223 | void show_fpregs(struct user_fp *regs) |
217 | { | 224 | { |
218 | int i; | 225 | int i; |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 93dc4646cd7f..6e31718f6008 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -31,9 +31,6 @@ | |||
31 | 31 | ||
32 | #include "ptrace.h" | 32 | #include "ptrace.h" |
33 | 33 | ||
34 | extern void c_backtrace (unsigned long fp, int pmode); | ||
35 | extern void show_pte(struct mm_struct *mm, unsigned long addr); | ||
36 | |||
37 | const char *processor_modes[]= | 34 | const char *processor_modes[]= |
38 | { "USER_26", "FIQ_26" , "IRQ_26" , "SVC_26" , "UK4_26" , "UK5_26" , "UK6_26" , "UK7_26" , | 35 | { "USER_26", "FIQ_26" , "IRQ_26" , "SVC_26" , "UK4_26" , "UK5_26" , "UK6_26" , "UK7_26" , |
39 | "UK8_26" , "UK9_26" , "UK10_26", "UK11_26", "UK12_26", "UK13_26", "UK14_26", "UK15_26", | 36 | "UK8_26" , "UK9_26" , "UK10_26", "UK11_26", "UK12_26", "UK13_26", "UK14_26", "UK15_26", |
@@ -216,8 +213,7 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
216 | 213 | ||
217 | printk("Internal error: %s: %x [#%d]\n", str, err, ++die_counter); | 214 | printk("Internal error: %s: %x [#%d]\n", str, err, ++die_counter); |
218 | print_modules(); | 215 | print_modules(); |
219 | printk("CPU: %d\n", smp_processor_id()); | 216 | __show_regs(regs); |
220 | show_regs(regs); | ||
221 | printk("Process %s (pid: %d, stack limit = 0x%p)\n", | 217 | printk("Process %s (pid: %d, stack limit = 0x%p)\n", |
222 | tsk->comm, tsk->pid, tsk->thread_info + 1); | 218 | tsk->comm, tsk->pid, tsk->thread_info + 1); |
223 | 219 | ||
@@ -482,7 +478,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
482 | current->pid, current->comm, no); | 478 | current->pid, current->comm, no); |
483 | dump_instr(regs); | 479 | dump_instr(regs); |
484 | if (user_mode(regs)) { | 480 | if (user_mode(regs)) { |
485 | show_regs(regs); | 481 | __show_regs(regs); |
486 | c_backtrace(regs->ARM_fp, processor_mode(regs)); | 482 | c_backtrace(regs->ARM_fp, processor_mode(regs)); |
487 | } | 483 | } |
488 | } | 484 | } |