summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/SmbiosPlatformDxe
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-21 08:57:02 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-21 08:57:02 +0000
commitb0a2498d340cdd4a1beb61384fe9bb0c8d88da16 (patch)
tree250fb5689337d094d774572b37207038ce15563e /OvmfPkg/SmbiosPlatformDxe
parent7ee85aa2ff751ce2420649bbb6f7db2d823dbd40 (diff)
downloadedk2-b0a2498d340cdd4a1beb61384fe9bb0c8d88da16.tar.gz
edk2-b0a2498d340cdd4a1beb61384fe9bb0c8d88da16.tar.bz2
edk2-b0a2498d340cdd4a1beb61384fe9bb0c8d88da16.zip
According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record.
Signed-off-by: lzeng14 Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12752 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/SmbiosPlatformDxe')
-rw-r--r--OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
index 1cb28f01c7..42a5132e0e 100644
--- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
+++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
@@ -106,7 +106,7 @@ InstallAllStructures (
//
// Log the SMBIOS data for this structure
//
- SmbiosHandle = 0;
+ SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;
Status = Smbios->Add (
Smbios,
NULL,