From 91a978ce7e0c7a327cff1d9411b0e1c9dae8824a Mon Sep 17 00:00:00 2001 From: Guo Dong Date: Mon, 18 Oct 2021 20:34:38 -0700 Subject: [PATCH] UefiPayloadPkg: Replace MEMROY_ENTRY by MEMORY_ENTRY Fixes simple typo, no behavioral change. Cc: Maurice Ma Cc: Guo Dong Cc: Benjamin You Signed-off-by: Moritz Fischer Reviewed-by: Guo Dong --- UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h | 6 +++--- UefiPayloadPkg/Include/Library/BlParseLib.h | 2 +- UefiPayloadPkg/Library/CbParseLib/CbParseLib.c | 2 +- UefiPayloadPkg/Library/SblParseLib/SblParseLib.c | 4 ++-- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h b/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h index 99187e8037..47922b1851 100644 --- a/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h +++ b/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h @@ -23,14 +23,14 @@ typedef struct { UINT8 Type; UINT8 Flag; UINT8 Reserved[6]; -} MEMROY_MAP_ENTRY; +} MEMORY_MAP_ENTRY; typedef struct { UINT8 Revision; UINT8 Reserved0[3]; UINT32 Count; - MEMROY_MAP_ENTRY Entry[0]; -} MEMROY_MAP_INFO; + MEMORY_MAP_ENTRY Entry[0]; +} MEMORY_MAP_INFO; #pragma pack() #endif diff --git a/UefiPayloadPkg/Include/Library/BlParseLib.h b/UefiPayloadPkg/Include/Library/BlParseLib.h index 49eac31248..433a83f8b8 100644 --- a/UefiPayloadPkg/Include/Library/BlParseLib.h +++ b/UefiPayloadPkg/Include/Library/BlParseLib.h @@ -19,7 +19,7 @@ #define GET_BOOTLOADER_PARAMETER() PcdGet64 (PcdBootloaderParameter) typedef RETURN_STATUS \ - (*BL_MEM_INFO_CALLBACK) (MEMROY_MAP_ENTRY *MemoryMapEntry, VOID *Param); + (*BL_MEM_INFO_CALLBACK) (MEMORY_MAP_ENTRY *MemoryMapEntry, VOID *Param); /** This function retrieves the parameter base address from boot loader. diff --git a/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c b/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c index 4be5d66ba5..57e1cadc34 100644 --- a/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c +++ b/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c @@ -383,7 +383,7 @@ ParseMemoryInfo ( struct cb_memory *rec; struct cb_memory_range *Range; UINTN Index; - MEMROY_MAP_ENTRY MemoryMap; + MEMORY_MAP_ENTRY MemoryMap; // // Get the coreboot memory table diff --git a/UefiPayloadPkg/Library/SblParseLib/SblParseLib.c b/UefiPayloadPkg/Library/SblParseLib/SblParseLib.c index ccdcbfc07d..6904529925 100644 --- a/UefiPayloadPkg/Library/SblParseLib/SblParseLib.c +++ b/UefiPayloadPkg/Library/SblParseLib/SblParseLib.c @@ -93,10 +93,10 @@ ParseMemoryInfo ( IN VOID *Params ) { - MEMROY_MAP_INFO *MemoryMapInfo; + MEMORY_MAP_INFO *MemoryMapInfo; UINTN Idx; - MemoryMapInfo = (MEMROY_MAP_INFO *) GetGuidHobDataFromSbl (&gLoaderMemoryMapInfoGuid); + MemoryMapInfo = (MEMORY_MAP_INFO *) GetGuidHobDataFromSbl (&gLoaderMemoryMapInfoGuid); if (MemoryMapInfo == NULL) { ASSERT (FALSE); return RETURN_NOT_FOUND; diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c index 0e6dcf10f9..3646da2ba5 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -24,7 +24,7 @@ STATIC UINT32 mTopOfLowerUsableDram = 0; **/ EFI_STATUS MemInfoCallbackMmio ( - IN MEMROY_MAP_ENTRY *MemoryMapEntry, + IN MEMORY_MAP_ENTRY *MemoryMapEntry, IN VOID *Params ) {