aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-01 18:10:09 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-08 18:55:14 -0500
commit7ac21cd465391802d931bd5e692302639383b8f5 (patch)
tree532b900548dbe2c8b25549c84deaec8392cb413b /arch/powerpc/xmon
parent9be72573a80648866ed0045db22d97c6e160a540 (diff)
powerpc/xmon: Add display of soft & hard irq states
Also use local_paca instead of get_paca() to avoid getting into the smp_processor_id() debugging code from the debugger Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index cb95eea74d3d..63846ebd3276 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1437,7 +1437,8 @@ static void excprint(struct pt_regs *fp)
1437 1437
1438 printf(" current = 0x%lx\n", current); 1438 printf(" current = 0x%lx\n", current);
1439#ifdef CONFIG_PPC64 1439#ifdef CONFIG_PPC64
1440 printf(" paca = 0x%lx\n", get_paca()); 1440 printf(" paca = 0x%lx\t softe: %d\t harde: %d\n",
1441 local_paca, local_paca->soft_enabled, local_paca->hard_enabled);
1441#endif 1442#endif
1442 if (current) { 1443 if (current) {
1443 printf(" pid = %ld, comm = %s\n", 1444 printf(" pid = %ld, comm = %s\n",
@@ -1641,7 +1642,7 @@ static void super_regs(void)
1641 1642
1642 /* Dump out relevant Paca data areas. */ 1643 /* Dump out relevant Paca data areas. */
1643 printf("Paca: \n"); 1644 printf("Paca: \n");
1644 ptrPaca = get_paca(); 1645 ptrPaca = local_paca;
1645 1646
1646 printf(" Local Processor Control Area (LpPaca): \n"); 1647 printf(" Local Processor Control Area (LpPaca): \n");
1647 ptrLpPaca = ptrPaca->lppaca_ptr; 1648 ptrLpPaca = ptrPaca->lppaca_ptr;
@@ -2644,7 +2645,7 @@ static void dump_slb(void)
2644static void dump_stab(void) 2645static void dump_stab(void)
2645{ 2646{
2646 int i; 2647 int i;
2647 unsigned long *tmp = (unsigned long *)get_paca()->stab_addr; 2648 unsigned long *tmp = (unsigned long *)local_paca->stab_addr;
2648 2649
2649 printf("Segment table contents of cpu %x\n", smp_processor_id()); 2650 printf("Segment table contents of cpu %x\n", smp_processor_id());
2650 2651