summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChao Li <lichao@loongson.cn>2024-12-11 10:12:58 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-12 04:57:03 +0000
commit9537f8ce67141cc413eb55cc10e357f47cecc533 (patch)
treeabe83e3e59679c26a8f10d78e68aa42eeaccd386
parent3c8e10c8b3468fa81138ec332fc563e9796d8680 (diff)
downloadedk2-9537f8ce67141cc413eb55cc10e357f47cecc533.tar.gz
UefiCpuPkg: Remove macro MAX_LOONGARCH_EXCEPTION
Since the UEFI 2.11 has been released, the macro MAX_LOONGARCH_EXCEPTION has been added in MdePkg, so it is deleted in LoongArch folder header file. Cc: Ray Ni <ray.ni@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Dun Tan <dun.tan@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Chao Li <lichao@loongson.cn>
-rw-r--r--UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h7
-rw-r--r--UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h7
-rw-r--r--UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h7
3 files changed, 0 insertions, 21 deletions
diff --git a/UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h b/UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h
index 8bfbfa3442..f69d83da21 100644
--- a/UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h
+++ b/UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h
@@ -27,13 +27,6 @@
#include <Protocol/DebugSupport.h>
#include <Protocol/LoadedImage.h>
-//
-// For coding convenience, define the maximum valid
-// LoongArch exception.
-// Since UEFI V2.11, it will be present in DebugSupport.h.
-//
-#define MAX_LOONGARCH_EXCEPTION 64
-
/*
This function flushes the range of addresses from Start to Start+Length
from the processor's data cache. If Start is not aligned to a cache line
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h b/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h
index e326b73e3f..6b65001738 100644
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h
@@ -12,13 +12,6 @@
#define MAX_DEBUG_MESSAGE_LENGTH 0x100
-//
-// For coding convenience, define the maximum valid
-// LoongArch exception.
-// Since UEFI V2.11, it will be present in DebugSupport.h.
-//
-#define MAX_LOONGARCH_EXCEPTION 64
-
extern INTN mExceptionKnownNameNum;
/**
diff --git a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h
index b115245d68..2fcfbd2f74 100644
--- a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h
+++ b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h
@@ -23,11 +23,4 @@
#define PTE_PPN_SHIFT EFI_PAGE_SHIFT
#define LOONGARCH_MMU_PAGE_SHIFT EFI_PAGE_SHIFT
-//
-// For coding convenience, define the maximum valid
-// LoongArch exception.
-// Since UEFI V2.11, it will be present in DebugSupport.h.
-//
-#define MAX_LOONGARCH_EXCEPTION 64
-
#endif // PAGE_H_