MdePkg: Add LoongArch Cpucfg function

Add LoongArch AsmCpucfg function and Cpucfg definitions.

Also added Include/Register/LoongArch64/Cpucfg.h to IgnoreFiles of
EccCheck.

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>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Chao Li
2023-11-02 20:29:41 +08:00
committed by Liming Gao
parent 2ff435b264
commit 344dc4b9d3
5 changed files with 606 additions and 1 deletions

View File

@@ -327,6 +327,18 @@ DisableLocalInterrupts (
IN UINT16
);
/**
Read CPUCFG register.
@param Index Specifies the register number of the CPUCFG to read the data.
@param Data A pointer to the variable used to store the CPUCFG register value.
**/
VOID
AsmCpucfg (
IN UINT32 Index,
OUT UINT32 *Data
);
#endif // defined (MDE_CPU_LOONGARCH64)
//