MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -45,28 +45,28 @@ SmmCommunicationBufferEntryPoint (
|
||||
EDKII_PI_SMM_COMMUNICATION_REGION_TABLE *PiSmmCommunicationRegionTable;
|
||||
EFI_MEMORY_DESCRIPTOR *Entry;
|
||||
|
||||
DescriptorSize = sizeof(EFI_MEMORY_DESCRIPTOR);
|
||||
DescriptorSize = sizeof (EFI_MEMORY_DESCRIPTOR);
|
||||
//
|
||||
// Make sure Size != sizeof(EFI_MEMORY_DESCRIPTOR). This will
|
||||
// prevent people from having pointer math bugs in their code.
|
||||
// now you have to use *DescriptorSize to make things work.
|
||||
//
|
||||
DescriptorSize += sizeof(UINT64) - (DescriptorSize % sizeof (UINT64));
|
||||
DescriptorSize += sizeof (UINT64) - (DescriptorSize % sizeof (UINT64));
|
||||
|
||||
//
|
||||
// Allocate and fill PiSmmCommunicationRegionTable
|
||||
//
|
||||
PiSmmCommunicationRegionTable = AllocateReservedPool (sizeof(EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);
|
||||
ASSERT(PiSmmCommunicationRegionTable != NULL);
|
||||
ZeroMem (PiSmmCommunicationRegionTable, sizeof(EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);
|
||||
PiSmmCommunicationRegionTable = AllocateReservedPool (sizeof (EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);
|
||||
ASSERT (PiSmmCommunicationRegionTable != NULL);
|
||||
ZeroMem (PiSmmCommunicationRegionTable, sizeof (EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);
|
||||
|
||||
PiSmmCommunicationRegionTable->Version = EDKII_PI_SMM_COMMUNICATION_REGION_TABLE_VERSION;
|
||||
PiSmmCommunicationRegionTable->NumberOfEntries = 1;
|
||||
PiSmmCommunicationRegionTable->DescriptorSize = DescriptorSize;
|
||||
Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1);
|
||||
Entry->Type = EfiConventionalMemory;
|
||||
Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES);
|
||||
ASSERT(Entry->PhysicalStart != 0);
|
||||
Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1);
|
||||
Entry->Type = EfiConventionalMemory;
|
||||
Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES);
|
||||
ASSERT (Entry->PhysicalStart != 0);
|
||||
Entry->VirtualStart = 0;
|
||||
Entry->NumberOfPages = DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES;
|
||||
Entry->Attribute = 0;
|
||||
|
Reference in New Issue
Block a user