extern void __init early_signal_init(void);
extern asmlinkage void __backtrace(void);
-extern asmlinkage void c_backtrace(unsigned long fp, int pmode);
+extern asmlinkage void c_backtrace(unsigned long fp);
extern void __show_regs(struct pt_regs *);
static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
{
- unsigned int fp, mode;
+ unsigned int fp;
int ok = 1;
printk(KERN_DEFAULT "Backtrace: ");
if (!tsk)
tsk = current;
- if (regs) {
+ if (regs)
fp = regs->UCreg_fp;
- mode = processor_mode(regs);
- } else if (tsk != current) {
+ else if (tsk != current)
fp = thread_saved_fp(tsk);
- mode = 0x10;
- } else {
+ else
asm("mov %0, fp" : "=r" (fp) : : "cc");
- mode = 0x10;
- }
if (!fp) {
printk("no frame pointer");
printk("\n");
if (ok)
- c_backtrace(fp, mode);
+ c_backtrace(fp);
}
void show_stack(struct task_struct *tsk, unsigned long *sp)