diff --git a/EdkModulePkg/Include/Ppi/StatusCodeMemory.h b/EdkModulePkg/Include/Ppi/StatusCodeMemory.h index 85b2b6de5f..e02e458f63 100644 --- a/EdkModulePkg/Include/Ppi/StatusCodeMemory.h +++ b/EdkModulePkg/Include/Ppi/StatusCodeMemory.h @@ -42,10 +42,10 @@ typedef struct { // PPI definition // typedef struct { - UINTN FirstEntry; - UINTN LastEntry; - EFI_PHYSICAL_ADDRESS Address; - UINTN Length; + UINT32 FirstEntry; + UINT32 LastEntry; + EFI_PHYSICAL_ADDRESS Address; + UINT32 Length; } PEI_STATUS_CODE_MEMORY_PPI; extern EFI_GUID gPeiStatusCodeMemoryPpiGuid; diff --git a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c index 1661d7753c..087ef53aea 100644 --- a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c +++ b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c @@ -69,8 +69,8 @@ Returns: EFI_PEI_PROGRESS_CODE_PPI *ReportStatusCodePpi; EFI_PHYSICAL_ADDRESS Buffer; VOID *StartPointer; - UINTN Length; - UINTN LastEntry; + UINT32 Length; + UINT32 LastEntry; EFI_PEI_PPI_DESCRIPTOR *ReportStatusCodeDescriptor; EFI_PEI_PPI_DESCRIPTOR *StatusCodeMemoryDescriptor; @@ -327,7 +327,7 @@ Returns: EFI_STATUS Status; PEI_STATUS_CODE_MEMORY_PPI *StatusCodeMemoryPpi; EFI_STATUS_CODE_ENTRY *CurrentEntry; - UINTN LastEntry; + UINT32 LastEntry; MEMORY_STATUS_CODE_INSTANCE *PrivateData; EFI_PEI_PPI_DESCRIPTOR *StatusCodeMemoryDescriptor; EFI_PEI_SERVICES **PeiServices; diff --git a/EdkModulePkg/Library/EdkRuntimeStatusCodeLib/RtMemoryStatusCode/RtMemoryStatusCode.c b/EdkModulePkg/Library/EdkRuntimeStatusCodeLib/RtMemoryStatusCode/RtMemoryStatusCode.c index 375a338a85..e0347a3a03 100644 --- a/EdkModulePkg/Library/EdkRuntimeStatusCodeLib/RtMemoryStatusCode/RtMemoryStatusCode.c +++ b/EdkModulePkg/Library/EdkRuntimeStatusCodeLib/RtMemoryStatusCode/RtMemoryStatusCode.c @@ -55,7 +55,7 @@ Returns: --*/ { EFI_STATUS_CODE_ENTRY *CurrentEntry; - UINTN MaxEntry; + UINT32 MaxEntry; // // We don't care to log debug codes.