diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-21 08:59:54 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-21 08:59:54 +0000 |
commit | a762a8778323bb943bfb96302f422f97631a4381 (patch) | |
tree | 4a60a3755959aced9e971399aec93351e48fc3c8 /UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c | |
parent | b0a2498d340cdd4a1beb61384fe9bb0c8d88da16 (diff) | |
download | edk2-platforms-a762a8778323bb943bfb96302f422f97631a4381.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@12753 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c')
-rw-r--r-- | UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c b/UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c index a910634f00..145603a9a9 100644 --- a/UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c +++ b/UnixPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c @@ -2,7 +2,7 @@ BIOS system option string boot time changes.
SMBIOS type 12.
- Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -70,13 +70,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString) //
// Now we have got the full smbios record, call smbios protocol to add this record.
//
- SmbiosHandle = 0;
- Status = Smbios-> Add(
- Smbios,
- NULL,
- &SmbiosHandle,
- (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord
- );
+ Status = AddSmbiosRecord (Smbios, &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord);
FreePool(SmbiosRecord);
return Status;
|