[parisc-linux] traps.c - void show_stack(struct pt_regs *regs)

Carlos O'Donell Jr. carlos@baldric.uwo.ca
Fri, 3 May 2002 13:48:23 -0400


pa,

-pa23

linux/arch/parisc/traps.c

    159                 cr30 = mfctl(30);
    160                 cr31 = mfctl(31);
    161                 stack_start = sp & ~(ISTACK_SIZE - 1);
    162                 if (stack_start == cr31) {
...
    189                 }
    190                 else
    191                 {
    192                     /* Stack Dump! */
    193                     printk(KERN_CRIT "WARNING! Stack pointer and cr30 do not correspond!\n");
    194                     printk(KERN_CRIT "Dumping virtual address stack instead\n");
    195                     dump_stack((unsigned long)__va(stack_start), (unsigned long)__va(sp), 0);
    196                 }

Line 193:

	Why do we say cr30 does not correspond to stack pointer?

c.