]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/SmbiosGenDxe/SmbiosGen.c
SecurityPkg/TrEEPei: remove TrEE.
[mirror_edk2.git] / DuetPkg / SmbiosGenDxe / SmbiosGen.c
index f3d52da92dffd486c46fa47bb0985722bd0c1387..393bb4d374e5f7d05f130e5a7b042481c94da227 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2009 - 2010, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -18,7 +18,6 @@ Abstract:
 **/\r
 \r
 #include "SmbiosGen.h"\r
-EFI_HII_DATABASE_PROTOCOL   *gHiiDatabase;\r
 extern UINT8                SmbiosGenDxeStrings[];\r
 EFI_SMBIOS_PROTOCOL         *gSmbios;\r
 EFI_HII_HANDLE              gStringHandle;\r
@@ -211,16 +210,6 @@ SmbiosGenEntrypoint (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-\r
-  Status = gBS->LocateProtocol (\r
-                  &gEfiHiiDatabaseProtocolGuid,\r
-                  NULL,\r
-                  (VOID**)&gHiiDatabase\r
-                  );\r
-\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
   \r
   gStringHandle = HiiAddPackages (\r
                     &gEfiCallerIdGuid,\r
@@ -330,7 +319,7 @@ LogSmbiosData (
   EFI_STATUS         Status;\r
   EFI_SMBIOS_HANDLE  SmbiosHandle;\r
   \r
-  SmbiosHandle = 0;\r
+  SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;\r
   Status = Smbios->Add (\r
                      Smbios,\r
                      NULL,\r