mirror of https://github.com/acidanthera/audk.git
MdePkg: Add some comments for LoongArch exceptions
Added some comments for registing LoongArch exceptions. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Chao Li <lichao@loongson.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
3f8fb8aeb9
commit
f560c5d112
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue