From f49146e85c970c51d756c8c174c92ff99ddc6d57 Mon Sep 17 00:00:00 2001 From: li-elvin Date: Tue, 2 Apr 2013 07:44:11 +0000 Subject: Fill SMBIOS BCD revision field. Signed-off-by: Li Elvin Reviewed-by: Star Zeng git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14238 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index 861e35eb99..8bf5d443a1 100644 --- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c +++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c @@ -2,7 +2,7 @@ This code produces the Smbios protocol. It also responsible for constructing SMBIOS table into system table. -Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
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 @@ -87,11 +87,11 @@ SMBIOS_TABLE_ENTRY_POINT EntryPointStructureData = { // 0, // - // StructureTableLength, TO BE FILLED + // TableLength, TO BE FILLED // 0, // - // StructureTableAddress, TO BE FILLED + // TableAddress, TO BE FILLED // 0, // @@ -101,7 +101,8 @@ SMBIOS_TABLE_ENTRY_POINT EntryPointStructureData = { // // SmbiosBcdRevision // - 0 + (UINT8) ((FixedPcdGet16 (PcdSmbiosVersion) >> 4) & 0xf0) + | (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x0f) }; -- cgit v1.2.3