diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-01 02:54:22 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-01 02:54:22 +0000 |
commit | 9f7d5b46aa54a46cf03e52569757d642c15d5175 (patch) | |
tree | 514bc039ad2ae60a40b6128272800d7e3d809618 /MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | |
parent | 3507ab19e4d523aa1dc6524b2b165bf4658242c9 (diff) | |
download | edk2-platforms-9f7d5b46aa54a46cf03e52569757d642c15d5175.tar.xz |
Remove micro definition for smbios version, instead we use a PCD value to let user customize smbios version better.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9893 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c')
-rw-r--r-- | MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index a3a85d59db..9e80c3b1d3 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, Intel Corporation
+Copyright (c) 2009 - 2010, 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
@@ -45,13 +45,13 @@ SMBIOS_TABLE_ENTRY_POINT EntryPointStructureData = { //
0x1f,
//
- // MajorVersion: 2 (Version 2.4)
+ // MajorVersion
//
- 0x02,
+ (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8),
//
- // MinorVersion: 4 (Version 2.4)
+ // MinorVersion
//
- 0x04,
+ (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff),
//
// MaxStructureSize, TO BE FILLED
//
@@ -997,8 +997,8 @@ SmbiosDriverEntryPoint ( mPrivateData.Smbios.UpdateString = SmbiosUpdateString;
mPrivateData.Smbios.Remove = SmbiosRemove;
mPrivateData.Smbios.GetNext = SmbiosGetNext;
- mPrivateData.Smbios.MajorVersion = SMBIOS_MAJOR_VERSION;
- mPrivateData.Smbios.MinorVersion = SMBIOS_MINOR_VERSION;
+ mPrivateData.Smbios.MajorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) >> 8);
+ mPrivateData.Smbios.MinorVersion = (UINT8) (FixedPcdGet16 (PcdSmbiosVersion) & 0x00ff);
InitializeListHead (&mPrivateData.DataListHead);
InitializeListHead (&mPrivateData.AllocatedHandleListHead);
|