EDKII_PI_SMM_COMMUNICATION_REGION_TABLE *PiSmmCommunicationRegionTable;\r
EFI_MEMORY_DESCRIPTOR *Entry;\r
\r
- DescriptorSize = sizeof(EFI_MEMORY_DESCRIPTOR);\r
+ DescriptorSize = sizeof (EFI_MEMORY_DESCRIPTOR);\r
//\r
// Make sure Size != sizeof(EFI_MEMORY_DESCRIPTOR). This will\r
// prevent people from having pointer math bugs in their code.\r
// now you have to use *DescriptorSize to make things work.\r
//\r
- DescriptorSize += sizeof(UINT64) - (DescriptorSize % sizeof (UINT64));\r
+ DescriptorSize += sizeof (UINT64) - (DescriptorSize % sizeof (UINT64));\r
\r
//\r
// Allocate and fill PiSmmCommunicationRegionTable\r
//\r
- PiSmmCommunicationRegionTable = AllocateReservedPool (sizeof(EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);\r
- ASSERT(PiSmmCommunicationRegionTable != NULL);\r
- ZeroMem (PiSmmCommunicationRegionTable, sizeof(EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);\r
+ PiSmmCommunicationRegionTable = AllocateReservedPool (sizeof (EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);\r
+ ASSERT (PiSmmCommunicationRegionTable != NULL);\r
+ ZeroMem (PiSmmCommunicationRegionTable, sizeof (EDKII_PI_SMM_COMMUNICATION_REGION_TABLE) + DescriptorSize);\r
\r
PiSmmCommunicationRegionTable->Version = EDKII_PI_SMM_COMMUNICATION_REGION_TABLE_VERSION;\r
PiSmmCommunicationRegionTable->NumberOfEntries = 1;\r
PiSmmCommunicationRegionTable->DescriptorSize = DescriptorSize;\r
- Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1);\r
- Entry->Type = EfiConventionalMemory;\r
- Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES);\r
- ASSERT(Entry->PhysicalStart != 0);\r
+ Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1);\r
+ Entry->Type = EfiConventionalMemory;\r
+ Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES);\r
+ ASSERT (Entry->PhysicalStart != 0);\r
Entry->VirtualStart = 0;\r
Entry->NumberOfPages = DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES;\r
Entry->Attribute = 0;\r