MdePkg: Add CSR operation for LoongArch
Add CsrRead, CsrWrite and CsrXChg functions for LoongArch, and use them to operate the CSR register of LoongArch architecture. 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> Co-authored-by: Bibo Mao <maobibo@loongson.cn> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
@@ -410,7 +410,9 @@
|
||||
[Sources.LOONGARCH64]
|
||||
Math64.c
|
||||
Unaligned.c
|
||||
LoongArch64/Csr.c
|
||||
LoongArch64/InternalSwitchStack.c
|
||||
LoongArch64/AsmCsr.S | GCC
|
||||
LoongArch64/GetInterruptState.S | GCC
|
||||
LoongArch64/EnableInterrupts.S | GCC
|
||||
LoongArch64/DisableInterrupts.S | GCC
|
||||
|
Reference in New Issue
Block a user