summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/Protocol/DebugSupport.h
diff options
context:
space:
mode:
authoranimeshbm2024-03-14 13:20:59 +0100
committerGitHub2024-03-14 13:20:59 +0100
commit211ac5f933e97b3accf935dd6dc92e58cc23dbb6 (patch)
treef385c42cc60bdb621bef3c4fe059f7562af0f57b /src/include/ipxe/efi/Protocol/DebugSupport.h
parentsupport for aqc113 (diff)
parent[efi] Update to current EDK2 headers (diff)
downloadipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.gz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.xz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.zip
Merge branch 'ipxe:master' into aqc1xx
Diffstat (limited to 'src/include/ipxe/efi/Protocol/DebugSupport.h')
-rw-r--r--src/include/ipxe/efi/Protocol/DebugSupport.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/Protocol/DebugSupport.h b/src/include/ipxe/efi/Protocol/DebugSupport.h
index 453ea975..8f930e33 100644
--- a/src/include/ipxe/efi/Protocol/DebugSupport.h
+++ b/src/include/ipxe/efi/Protocol/DebugSupport.h
@@ -685,6 +685,20 @@ typedef struct {
//
// LoongArch processor exception types.
//
+// The exception types is located in the CSR ESTAT
+// register offset 16 bits, width 6 bits.
+//
+// If you want to register an exception hook, you can
+// shfit the number left by 16 bits, and the exception
+// handler will know the types.
+//
+// For example:
+// mCpu->CpuRegisterInterruptHandler (
+// mCpu,
+// (EXCEPT_LOONGARCH_PPI << CSR_ESTAT_EXC_SHIFT),
+// PpiExceptionHandler
+// );
+//
#define EXCEPT_LOONGARCH_INT 0
#define EXCEPT_LOONGARCH_PIL 1
#define EXCEPT_LOONGARCH_PIS 2