summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiPcdLib
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-05-20 12:20:04 +0800
committerStar Zeng <star.zeng@intel.com>2016-05-23 10:48:53 +0800
commitc745144407fa76e6a6ca9146f41397f292d25a94 (patch)
tree688dddf35154ee45e89001990b2c1fa3fc448cb7 /MdePkg/Library/PeiPcdLib
parent120ca3ceae5dfaec475907ad612e5377a3b816aa (diff)
downloadedk2-c745144407fa76e6a6ca9146f41397f292d25a94.tar.gz
edk2-c745144407fa76e6a6ca9146f41397f292d25a94.tar.bz2
edk2-c745144407fa76e6a6ca9146f41397f292d25a94.zip
MdePkg: Follow PI1.4a to fix artificial limitation of SkuId range
There is absolutely no reason to artificially limit the SKU range to 1-255. PI1.4a spec fixed the artificial limitation. This patch is to follow PI1.4a spec to remove PCD_MAX_SKU_ID definition, the check to PCD_MAX_SKU_ID and the comments describes the limitation. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/PeiPcdLib')
-rw-r--r--MdePkg/Library/PeiPcdLib/PeiPcdLib.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
index 53e8ad6c00..2496701862 100644
--- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
+++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
@@ -1,7 +1,7 @@
/** @file
Implementation of PcdLib class library for PEI phase.
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, 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
@@ -124,7 +124,6 @@ GetPiPcdInfoPpiPointer (
This function provides a means by which SKU support can be established in the PCD infrastructure.
Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.
- If SkuId >= PCD_MAX_SKU_ID, then ASSERT().
@param SkuId The SKU value that will be used when the PCD service retrieves
and sets values associated with a PCD token.
@@ -138,9 +137,6 @@ LibPcdSetSku (
IN UINTN SkuId
)
{
-
- ASSERT (SkuId < PCD_MAX_SKU_ID);
-
GetPiPcdPpiPointer()->SetSku (SkuId);
return SkuId;
@@ -1615,8 +1611,6 @@ LibPcdGetInfoEx (
/**
Retrieve the currently set SKU Id.
- If the sku id got >= PCD_MAX_SKU_ID, then ASSERT().
-
@return The currently set SKU Id. If the platform has not set at a SKU Id, then the
default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU
Id is returned.
@@ -1627,10 +1621,5 @@ LibPcdGetSku (
VOID
)
{
- UINTN SkuId;
-
- SkuId = GetPiPcdInfoPpiPointer()->GetSku ();
- ASSERT (SkuId < PCD_MAX_SKU_ID);
-
- return SkuId;
+ return GetPiPcdInfoPpiPointer()->GetSku ();
}