/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
Status = PciRootBridgeIo->Pci.Read (\r
PciRootBridgeIo,\r
EfiPciWidthUint32,\r
- EFI_PCI_ADDRESS (LPC_BUS_NUMBER,\r
- LPC_DEVICE_NUMBER,\r
- LPC_IF,\r
- Offset),\r
+ EFI_PCI_ADDRESS (\r
+ LPC_BUS_NUMBER,\r
+ LPC_DEVICE_NUMBER,\r
+ LPC_IF,\r
+ Offset\r
+ ),\r
1,\r
&Value\r
);\r
Status = GetSwapState (FtwLiteDevice, &TopSwap);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "FtwLite: Get Top Swapped status - %r\n", Status));\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return EFI_ABORTED;\r
}\r
\r
//\r
Status = GetFvbByAddress (FtwLiteDevice->SpareAreaAddress + FTW_BLOCK_SIZE, &BootFvb);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
//\r
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
\r
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
\r
//\r
Status = FtwEraseSpareBlock (FtwLiteDevice);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return EFI_ABORTED;\r
}\r
//\r
);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_FTW_LITE, "FtwLite: FVB Write boot block - %r\n", Status));\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
\r
Ptr += Count;\r
}\r
\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
\r
//\r
// Clear TopSwap bit\r