MdePkg: Add LoongArch64 local interrupt function set into BaseLib
Adding LoongArch local interrupt function set, which is used to control the opening or closing of the local interrupt when the global interrupt is enabled. 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:
@@ -307,6 +307,26 @@ SetTlbRebaseAddress (
|
||||
IN UINT64
|
||||
);
|
||||
|
||||
/**
|
||||
Enables local CPU interrupts.
|
||||
|
||||
@param Needs to enable local interrupt bit.
|
||||
**/
|
||||
VOID
|
||||
EnableLocalInterrupts (
|
||||
IN UINT16
|
||||
);
|
||||
|
||||
/**
|
||||
Disables local CPU interrupts.
|
||||
|
||||
@param Needs to disable local interrupt bit.
|
||||
**/
|
||||
VOID
|
||||
DisableLocalInterrupts (
|
||||
IN UINT16
|
||||
);
|
||||
|
||||
#endif // defined (MDE_CPU_LOONGARCH64)
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user