summaryrefslogtreecommitdiff
path: root/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 00:56:15 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 00:56:15 +0000
commit9e65d5e9754ef45c979d58d24e9762c07e0f2ad5 (patch)
tree29f240d7eeca2f3230163f370a0638465d1b059b /DuetPkg/Library/DuetBdsLib/BdsPlatform.c
parent6583c3582fc6f36131a9516ed3027122f19a842e (diff)
downloadedk2-platforms-9e65d5e9754ef45c979d58d24e9762c07e0f2ad5.tar.xz
Clean up DuetBdsLib:
Refine to pass CYGWIN GCC tool chain. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7410 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/Library/DuetBdsLib/BdsPlatform.c')
-rw-r--r--DuetPkg/Library/DuetBdsLib/BdsPlatform.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
index 7a4f7e8af3..e39700ddb0 100644
--- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
+++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c
@@ -27,6 +27,11 @@ Abstract:
CHAR16 mFirmwareVendor[] = L"TianoCore.org";
extern BOOLEAN gConnectAllHappened;
extern USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath;
+
+EFI_GUID *gTableGuidArray[] = {
+ &gEfiAcpi20TableGuid, &gEfiAcpiTableGuid, &gEfiSmbiosTableGuid, &gEfiMpsTableGuid
+ };
+
//
// BDS Platform Functions
//
@@ -52,9 +57,6 @@ Returns:
EFI_PEI_HOB_POINTERS HobStart;
EFI_PHYSICAL_ADDRESS *Table;
UINTN Index;
- EFI_GUID *TableGuidArray[] = {
- &gEfiAcpi20TableGuid, &gEfiAcpiTableGuid, &gEfiSmbiosTableGuid, &gEfiMpsTableGuid
- };
//
// Get Hob List
@@ -63,8 +65,8 @@ Returns:
//
// Iteratively add ACPI Table, SMBIOS Table, MPS Table to EFI System Table
//
- for (Index = 0; Index < sizeof (TableGuidArray) / sizeof (*TableGuidArray); ++Index) {
- GuidHob.Raw = GetNextGuidHob (TableGuidArray[Index], HobStart.Raw);
+ for (Index = 0; Index < sizeof (gTableGuidArray) / sizeof (*gTableGuidArray); ++Index) {
+ GuidHob.Raw = GetNextGuidHob (gTableGuidArray[Index], HobStart.Raw);
if (GuidHob.Raw != NULL) {
Table = GET_GUID_HOB_DATA (GuidHob.Guid);
if (Table != NULL) {
@@ -73,8 +75,8 @@ Returns:
// According to UEFI Spec, we should make sure Smbios table,
// ACPI table and Mps tables kept in memory of specified type
//
- ConvertSystemTable(TableGuidArray[Index], (VOID**)&Table);
- gBS->InstallConfigurationTable (TableGuidArray[Index], (VOID *)Table);
+ ConvertSystemTable(gTableGuidArray[Index], (VOID**)&Table);
+ gBS->InstallConfigurationTable (gTableGuidArray[Index], (VOID *)Table);
}
}
}