summaryrefslogtreecommitdiff
path: root/Nt32Pkg/CpuRuntimeDxe/Cpu.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-21 14:42:45 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-21 14:42:45 +0000
commit5fd5fcd321e3d778aa51f1a47732c8d886c1ff4c (patch)
treedd2cadee0d7de823326d1e584f110d0e75d0a453 /Nt32Pkg/CpuRuntimeDxe/Cpu.c
parent7d582d6b499ed30268da033cc17fbde6e7b02a9d (diff)
downloadedk2-platforms-5fd5fcd321e3d778aa51f1a47732c8d886c1ff4c.tar.xz
UEFI HII: Merge UEFI HII support changes from branch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4601 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/CpuRuntimeDxe/Cpu.c')
-rw-r--r--Nt32Pkg/CpuRuntimeDxe/Cpu.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/Nt32Pkg/CpuRuntimeDxe/Cpu.c b/Nt32Pkg/CpuRuntimeDxe/Cpu.c
index 2dff9024c9..48e12ecc1c 100644
--- a/Nt32Pkg/CpuRuntimeDxe/Cpu.c
+++ b/Nt32Pkg/CpuRuntimeDxe/Cpu.c
@@ -421,10 +421,7 @@ Returns:
UINT32 HeaderSize;
UINT32 TotalSize;
EFI_DATA_HUB_PROTOCOL *DataHub;
- EFI_HII_PROTOCOL *Hii;
- EFI_HII_HANDLE StringHandle;
- EFI_HII_PACKAGES *PackageList;
-
+ EFI_HII_HANDLE HiiHandle;
//
// Locate DataHub protocol.
@@ -435,14 +432,6 @@ Returns:
}
//
- // Locate DataHub protocol.
- //
- Status = gBS->LocateProtocol (&gEfiHiiProtocolGuid, NULL, &Hii);
- if (EFI_ERROR (Status)) {
- return;
- }
-
- //
// Initialize data record header
//
mCpuDataRecordHeader.Instance = 1;
@@ -456,10 +445,8 @@ Returns:
//
// Initialize strings to HII database
//
- PackageList = PreparePackages (1, &gEfiProcessorProducerGuid, CpuStrings);
- Status = Hii->NewPack (Hii, PackageList, &StringHandle);
- ASSERT (!EFI_ERROR (Status));
- FreePool (PackageList);
+ HiiLibAddPackagesToHiiDatabase (1, &gEfiProcessorProducerGuid, NULL, &HiiHandle, CpuStrings);
+
CopyMem (RecordBuffer.Raw, &mCpuDataRecordHeader, HeaderSize);