summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c
diff options
context:
space:
mode:
authorChao Li <lichao@loongson.cn>2024-12-18 11:27:10 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-23 03:18:13 +0000
commit2ece0790f7c23292bb29a0f8008d7fac947852ea (patch)
tree114286704a1749e37cb59f67a95bc850d39f56d1 /UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c
parent0fdffb71df7c99301c6430a95af207159cbe9655 (diff)
downloadedk2-2ece0790f7c23292bb29a0f8008d7fac947852ea.tar.gz
UefiCpuPkg: Add dump interrupt type on LoongArch64
If the exception type is INT, we need to know which interrupt could not be handled, so we added a method to dump them. Cc: Ray Ni <ray.ni@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Dun Tan <dun.tan@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Chao Li <lichao@loongson.cn>
Diffstat (limited to 'UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c')
-rw-r--r--UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c
index ea299475f5..56891bcd3a 100644
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/LoongArch64/ArchExceptionHandler.c
@@ -96,6 +96,17 @@ DumpCpuContext (
);
//
+ // Dump interrupt type if the exception type is INT.
+ //
+ if (ExceptionType == EXCEPT_LOONGARCH_INT) {
+ InternalPrintMessage (
+ "\n!!!! Unhandled interrupt Type - %02x(%a) !!!!\n",
+ GetInterruptType (SystemContext),
+ GetInterruptNameStr (GetInterruptType (SystemContext))
+ );
+ }
+
+ //
// Dump TLB refill ERA and BADV
//
if (ExceptionType == (mExceptionKnownNameNum - 1)) {