ia64/xen-unstable

changeset 202:4b4303cad624

bitkeeper revision 1.63 (3e50dd47zivcHgDUqVO9595wIQE2yQ)

traps.c:
Even better debug tracing.
author kaf24@labyrinth.cl.cam.ac.uk
date Mon Feb 17 13:01:59 2003 +0000 (2003-02-17)
parents 7e1893c8ae92
children 6cdebb6f9876
files xen-2.4.16/arch/i386/traps.c
line diff
     1.1 --- a/xen-2.4.16/arch/i386/traps.c	Mon Feb 17 11:45:18 2003 +0000
     1.2 +++ b/xen-2.4.16/arch/i386/traps.c	Mon Feb 17 13:01:59 2003 +0000
     1.3 @@ -69,11 +69,15 @@ asmlinkage void alignment_check(void);
     1.4  asmlinkage void spurious_interrupt_bug(void);
     1.5  asmlinkage void machine_check(void);
     1.6  
     1.7 -int kstack_depth_to_print = 24;
     1.8 +int kstack_depth_to_print = 8*20;
     1.9  
    1.10  static inline int kernel_text_address(unsigned long addr)
    1.11  {
    1.12 -    return ( 1 );
    1.13 +    if (addr >= (unsigned long) &_stext &&
    1.14 +        addr <= (unsigned long) &_etext)
    1.15 +        return 1;
    1.16 +    return 0;
    1.17 +
    1.18  }
    1.19  
    1.20  void show_trace(unsigned long * stack)
    1.21 @@ -127,7 +131,10 @@ void show_stack(unsigned long * esp)
    1.22              break;
    1.23          if (i && ((i % 8) == 0))
    1.24              printk("\n       ");
    1.25 -        printk("%08lx ", *stack++);
    1.26 +        if ( kernel_text_address(*stack) )
    1.27 +            printk("[%08lx] ", *stack++);
    1.28 +        else
    1.29 +            printk("%08lx ", *stack++);            
    1.30      }
    1.31      printk("\n");
    1.32      //show_trace(esp);