powerpc/64: change softe to irqmask in show_regs and xmon
authorNicholas Piggin <npiggin@gmail.com>
Thu, 10 May 2018 01:04:24 +0000 (11:04 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:40:30 +0000 (20:40 +1000)
When the soft enabled flag was changed to a soft disable mask, xmon
and register dump code was not updated to reflect that, which is
confusing ('SOFTE: 1' previously meant interrupts were soft enabled,
currently it means the opposite, the general interrupt type has been
disabled).

Fix this by using the name irqmask, and printing it in hex.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c
arch/powerpc/xmon/xmon.c

index 2a7fa50..8f35b30 100644 (file)
@@ -1420,7 +1420,7 @@ void show_regs(struct pt_regs * regs)
                pr_cont("DAR: "REG" DSISR: %08lx ", regs->dar, regs->dsisr);
 #endif
 #ifdef CONFIG_PPC64
-       pr_cont("SOFTE: %ld ", regs->softe);
+       pr_cont("IRQMASK: %lx ", regs->softe);
 #endif
 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM
        if (MSR_TM_ACTIVE(regs->msr))
index d94a412..0561c14 100644 (file)
@@ -1637,7 +1637,7 @@ static void excprint(struct pt_regs *fp)
 
        printf("  current = 0x%px\n", current);
 #ifdef CONFIG_PPC64
-       printf("  paca    = 0x%px\t softe: %d\t irq_happened: 0x%02x\n",
+       printf("  paca    = 0x%px\t irqmask: 0x%02x\t irq_happened: 0x%02x\n",
               local_paca, local_paca->irq_soft_mask, local_paca->irq_happened);
 #endif
        if (current) {