summaryrefslogtreecommitdiff
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-02 10:10:09 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-09 10:55:14 +1100
commit7ac21cd465391802d931bd5e692302639383b8f5 (patch)
tree532b900548dbe2c8b25549c84deaec8392cb413b /arch/powerpc/xmon
parent9be72573a80648866ed0045db22d97c6e160a540 (diff)
downloadlinux-3.10-7ac21cd465391802d931bd5e692302639383b8f5.tar.gz
linux-3.10-7ac21cd465391802d931bd5e692302639383b8f5.tar.bz2
linux-3.10-7ac21cd465391802d931bd5e692302639383b8f5.zip
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 cb95eea74d3..63846ebd327 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1437,7 +1437,8 @@ static void excprint(struct pt_regs *fp)
printf(" current = 0x%lx\n", current);
#ifdef CONFIG_PPC64
- printf(" paca = 0x%lx\n", get_paca());
+ printf(" paca = 0x%lx\t softe: %d\t harde: %d\n",
+ local_paca, local_paca->soft_enabled, local_paca->hard_enabled);
#endif
if (current) {
printf(" pid = %ld, comm = %s\n",
@@ -1641,7 +1642,7 @@ static void super_regs(void)
/* Dump out relevant Paca data areas. */
printf("Paca: \n");
- ptrPaca = get_paca();
+ ptrPaca = local_paca;
printf(" Local Processor Control Area (LpPaca): \n");
ptrLpPaca = ptrPaca->lppaca_ptr;
@@ -2644,7 +2645,7 @@ static void dump_slb(void)
static void dump_stab(void)
{
int i;
- unsigned long *tmp = (unsigned long *)get_paca()->stab_addr;
+ unsigned long *tmp = (unsigned long *)local_paca->stab_addr;
printf("Segment table contents of cpu %x\n", smp_processor_id());