]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Universal / SmmCommunicationBufferDxe / SmmCommunicationBufferDxe.c
index a2434908a8aeec0c9424bacc1a57a1dd6592f694..663cfff965c17f29f54db7459672fd2b4d796f7d 100644 (file)
@@ -45,28 +45,28 @@ SmmCommunicationBufferEntryPoint (
   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