summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-21 08:53:04 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-21 08:53:04 +0000
commit73c5d34e52f5ef2ef9ec08cf0cd920427a328038 (patch)
treef3198345740ca7850a7cdaac06f8ee37969b94f9 /EdkCompatibilityPkg
parent979a00fab9658bfdcb1037434c1251b896a72b02 (diff)
downloadedk2-platforms-73c5d34e52f5ef2ef9ec08cf0cd920427a328038.tar.xz
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@12749 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c b/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
index 38b1697156..324ee36fb9 100644
--- a/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
+++ b/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
@@ -217,7 +217,7 @@ SmbiosProcessDataRecord (
StructureNode->SmbiosType = Conversion->SmbiosType;
}
- StructureNode->SmbiosHandle = 0;
+ StructureNode->SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;
Status = SmbiosProtocolCreateRecord (
NULL,
StructureNode
@@ -530,7 +530,7 @@ GetSmbiosBufferFromHandle (
EFI_SMBIOS_TABLE_HEADER *RecordInSmbiosDatabase;
EFI_STATUS Status;
- SearchingHandle = 0;
+ SearchingHandle = SMBIOS_HANDLE_PI_RESERVED;
Smbios = GetSmbiosProtocol();
ASSERT (Smbios != NULL);