if (EFI_ERROR (Status)) {\r
//\r
// Bugbug: need to figure out whether C/D/E/F segment should be marked as reserved memory.\r
- // \r
+ //\r
DEBUG ((DEBUG_ERROR, "Failed to allocate the C/D/E/F segment Status = %r", Status));\r
}\r
}\r
Private->Legacy8259->GetMask(Private->Legacy8259, &OldMask, NULL, NULL, NULL);\r
NewMask = 0xFFFF;\r
Private->Legacy8259->SetMask(Private->Legacy8259, &NewMask, NULL, NULL, NULL);\r
- \r
+\r
//\r
// Call into Legacy16 code to do an INIT\r
//\r
// Restore original legacy interrupt mask value\r
//\r
Private->Legacy8259->SetMask(Private->Legacy8259, &OldMask, NULL, NULL, NULL);\r
- \r
+\r
if (Regs.X.AX != 0) {\r
return EFI_DEVICE_ERROR;\r
}\r
UINT16 PciInterfaceVersion;\r
\r
PciInterfaceVersion = 0;\r
- \r
+\r
Reg.X.AX = 0xB101;\r
Reg.E.EDI = 0;\r
\r
{\r
EFI_STATUS Status;\r
SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure;\r
- \r
+\r
//\r
// Get SMBIOS table from EFI configuration table\r
//\r
if ((EFI_ERROR (Status)) || (mRuntimeSmbiosEntryPoint == NULL)) {\r
return;\r
}\r
- \r
+\r
EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) mRuntimeSmbiosEntryPoint;\r
\r
//\r
}\r
DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Entry Point Structure\n"));\r
}\r
- \r
- if ((mStructureTableAddress != 0) && \r
+\r
+ if ((mStructureTableAddress != 0) &&\r
(mStructureTablePages < EFI_SIZE_TO_PAGES ((UINT32)EntryPointStructure->TableLength))) {\r
//\r
// If original buffer is not enough for the new SMBIOS table, free original buffer and re-allocate\r
mStructureTablePages = 0;\r
DEBUG ((EFI_D_INFO, "Original size is not enough. Re-allocate the memory.\n"));\r
}\r
- \r
+\r
if (mStructureTableAddress == 0) {\r
//\r
// Allocate reserved memory below 4GB.\r
);\r
if (EFI_ERROR (Status)) {\r
gBS->FreePages (\r
- mReserveSmbiosEntryPoint, \r
+ mReserveSmbiosEntryPoint,\r
EFI_SIZE_TO_PAGES ((UINTN) (EntryPointStructure->EntryPointLength))\r
);\r
mReserveSmbiosEntryPoint = 0;\r
FreePool (SecureBoot);\r
return EFI_SECURITY_VIOLATION;\r
}\r
- \r
+\r
if (SecureBoot != NULL) {\r
FreePool (SecureBoot);\r
}\r
// Allocate low PMM memory and zero it out\r
//\r
MemorySize = PcdGet32 (PcdLowPmmMemorySize);\r
- ASSERT ((MemorySize & 0xFFF) == 0); \r
+ ASSERT ((MemorySize & 0xFFF) == 0);\r
Status = AllocateLegacyMemory (\r
AllocateMaxAddress,\r
EfiBootServicesCode,\r
ASSERT ((MemorySize & 0xFFF) == 0);\r
//\r
// Allocate high PMM Memory under 16 MB\r
- // \r
+ //\r
Status = AllocateLegacyMemory (\r
AllocateMaxAddress,\r
EfiBootServicesCode,\r
if (EFI_ERROR (Status)) {\r
//\r
// If it fails, allocate high PMM Memory under 4GB\r
- // \r
+ //\r
Status = AllocateLegacyMemory (\r
AllocateMaxAddress,\r
EfiBootServicesCode,\r
0xFFFFFFFF,\r
EFI_SIZE_TO_PAGES (MemorySize),\r
&MemoryAddress\r
- ); \r
+ );\r
}\r
if (!EFI_ERROR (Status)) {\r
EfiToLegacy16InitTable->HiPmmMemory = (UINT32) (EFI_PHYSICAL_ADDRESS) (UINTN) MemoryAddress;\r
EfiToLegacy16InitTable->HiPmmMemorySizeInBytes = MemorySize;\r
- } \r
+ }\r
\r
//\r
// ShutdownAPs();\r
// Save EFI value\r
//\r
Private->ThunkSeg = (UINT16) (EFI_SEGMENT (IntRedirCode));\r
- \r
+\r
//\r
// Allocate reserved memory for SMBIOS table used in legacy boot if SMBIOS table exists\r
//\r
&gEfiSmbiosTableGuid,\r
&InstallSmbiosEvent\r
);\r
- ASSERT_EFI_ERROR (Status); \r
+ ASSERT_EFI_ERROR (Status);\r
\r
//\r
// Create callback to update status of EndOfDxe, which is needed by NULL\r
&Private->LegacyBios\r
);\r
Private->Csm16PciInterfaceVersion = GetPciInterfaceVersion (Private);\r
- \r
- DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n", \r
- (UINT8) (Private->Csm16PciInterfaceVersion >> 8), \r
+\r
+ DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n",\r
+ (UINT8) (Private->Csm16PciInterfaceVersion >> 8),\r
(UINT8) Private->Csm16PciInterfaceVersion\r
));\r
ASSERT (Private->Csm16PciInterfaceVersion != 0);\r