/** @file\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
)\r
{\r
SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure;\r
- \r
- if ((mRuntimeSmbiosEntryPoint == NULL) || \r
- (mReserveSmbiosEntryPoint == 0) || \r
+\r
+ if ((mRuntimeSmbiosEntryPoint == NULL) ||\r
+ (mReserveSmbiosEntryPoint == 0) ||\r
(mStructureTableAddress == 0)) {\r
return;\r
}\r
- \r
+\r
EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) mRuntimeSmbiosEntryPoint;\r
- \r
+\r
//\r
// Copy SMBIOS Entry Point Structure\r
//\r
EntryPointStructure,\r
EntryPointStructure->EntryPointLength\r
);\r
- \r
+\r
//\r
// Copy SMBIOS Structure Table into EfiReservedMemoryType memory\r
//\r
(VOID *)(UINTN) EntryPointStructure->TableAddress,\r
EntryPointStructure->TableLength\r
);\r
- \r
+\r
//\r
// Update TableAddress in Entry Point Structure\r
//\r
EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *)(UINTN) mReserveSmbiosEntryPoint;\r
EntryPointStructure->TableAddress = (UINT32)(UINTN) mStructureTableAddress;\r
- \r
+\r
//\r
// Fixup checksums in the Entry Point Structure\r
//\r
EntryPointStructure->IntermediateChecksum = 0;\r
EntryPointStructure->EntryPointStructureChecksum = 0;\r
\r
- EntryPointStructure->IntermediateChecksum = \r
+ EntryPointStructure->IntermediateChecksum =\r
CalculateCheckSum8 (\r
- (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString), \r
+ (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString),\r
EntryPointStructure->EntryPointLength - OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString)\r
);\r
EntryPointStructure->EntryPointStructureChecksum =\r
\r
EfiToLegacy16BootTable->MajorVersion = EFI_TO_LEGACY_MAJOR_VERSION;\r
EfiToLegacy16BootTable->MinorVersion = EFI_TO_LEGACY_MINOR_VERSION;\r
- \r
+\r
//\r
// If booting to a legacy OS then force HDD drives to the appropriate\r
// boot mode by calling GetIdeHandle.\r
);\r
if (!EFI_ERROR (Status)) {\r
IdeController = HandleBuffer[0];\r
- } \r
+ }\r
}\r
//\r
// Unlock the Legacy BIOS region\r
// Disable DXE Timer while executing in real mode\r
//\r
Private->Timer->SetTimerPeriod (Private->Timer, 0);\r
- \r
+\r
//\r
// Save and disable interrupt of debug timer\r
//\r
}\r
\r
UcdTable = (UD_TABLE *) AllocatePool (\r
- sizeof (UD_TABLE)\r
- );\r
+ sizeof (UD_TABLE)\r
+ );\r
if (NULL == UcdTable) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r