From 9537f8ce67141cc413eb55cc10e357f47cecc533 Mon Sep 17 00:00:00 2001 From: Chao Li Date: Wed, 11 Dec 2024 10:12:58 +0800 Subject: 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 Cc: Jiaxin Wu Cc: Zhiguang Liu Cc: Dun Tan Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Jiaxin Wu Signed-off-by: Chao Li --- UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h | 7 ------- .../Library/CpuExceptionHandlerLib/LoongArch/ExceptionCommon.h | 7 ------- UefiCpuPkg/Library/CpuMmuLib/LoongArch64/Page.h | 7 ------- 3 files changed, 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 #include -// -// 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_ -- cgit