Skip to content

Commit

Permalink
MdePkg: Add some comments for LoongArch exceptions
Browse files Browse the repository at this point in the history
Added some comments for registing LoongArch exceptions.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Chao Li <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
kilaterlee authored and lgao4 committed Feb 6, 2024
1 parent 3f8fb8a commit f560c5d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions MdePkg/Include/Protocol/DebugSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,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
Expand Down

0 comments on commit f560c5d

Please sign in to comment.