MdePkg: Add LoongArch64 exception function set into BaseLib
Adding SetExceptionBaseAddress and SetTlbRebaseAddress functions for LoongArch64. 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:
@@ -287,6 +287,26 @@ typedef struct {
|
||||
|
||||
#define BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT 8
|
||||
|
||||
/*
|
||||
* Set the exception base address for LoongArch.
|
||||
*
|
||||
* @param ExceptionBaseAddress The exception base address, must be aligned greater than or qeual to 4K .
|
||||
*/
|
||||
VOID
|
||||
SetExceptionBaseAddress (
|
||||
IN UINT64
|
||||
);
|
||||
|
||||
/*
|
||||
* Set the TlbRebase address for LoongArch.
|
||||
*
|
||||
* @param TlbRebaseAddress The TlbRebase address, must be aligned greater than or qeual to 4K .
|
||||
*/
|
||||
VOID
|
||||
SetTlbRebaseAddress (
|
||||
IN UINT64
|
||||
);
|
||||
|
||||
#endif // defined (MDE_CPU_LOONGARCH64)
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user