diff options
author | Michael Brown | 2024-03-11 13:12:31 +0100 |
---|---|---|
committer | Michael Brown | 2024-03-13 15:48:44 +0100 |
commit | df2f23e333601e587f72c68cb7b7b116796f9d3c (patch) | |
tree | 8160f3a2479669d97e639e134841cc452e3860bd /src/include/ipxe/efi/Protocol/DebugSupport.h | |
parent | [ci] Update action versions to silence GitHub warnings (diff) | |
download | ipxe-df2f23e333601e587f72c68cb7b7b116796f9d3c.tar.gz ipxe-df2f23e333601e587f72c68cb7b7b116796f9d3c.tar.xz ipxe-df2f23e333601e587f72c68cb7b7b116796f9d3c.zip |
[efi] Update to current EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/Protocol/DebugSupport.h')
-rw-r--r-- | src/include/ipxe/efi/Protocol/DebugSupport.h | 14 |
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 |