[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210422151022.17868-2-sxwjean@me.com>
Date: Thu, 22 Apr 2021 23:10:22 +0800
From: Xiongwei Song <sxwjean@...com>
To: mpe@...erman.id.au, benh@...nel.crashing.org, paulus@...ba.org,
christophe.leroy@...roup.eu, npiggin@...il.com,
ravi.bangoria@...ux.ibm.com, mikey@...ling.org,
aneesh.kumar@...ux.ibm.com, 0x7f454c46@...il.com
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Xiongwei Song <sxwjean@...il.com>
Subject: [PATCH 2/2] powerpc: Print esr register when hitting Program Interrupt
From: Xiongwei Song <sxwjean@...il.com>
The esr register has the details of Program Interrupt on BookE/4xx cpus,
printing its value is helpful.
Signed-off-by: Xiongwei Song <sxwjean@...il.com>
---
arch/powerpc/kernel/process.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 5c3830837f3a..664aecf8ee2e 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -1459,6 +1459,7 @@ static bool interrupt_detail_printable(int trap)
case INTERRUPT_MACHINE_CHECK:
case INTERRUPT_DATA_STORAGE:
case INTERRUPT_ALIGNMENT:
+ case INTERRUPT_PROGRAM:
return true;
default:
return false;
--
2.17.1
Powered by blists - more mailing lists