From bb5545b663e1d8ac4fd37003d5ba26fafdad5831 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Mon, 3 Jul 2006 15:40:49 +0000 Subject: Add PcdDxe and PcdPEIM to all-arch for EdkModulePkg-All-Archs.fpd Fix a few bugs in PcdDxe and PcdPEIM git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@722 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/PcdLib.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'MdePkg/Include/Library/PcdLib.h') diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h index 5858cfc475..fe8a1e6939 100644 --- a/MdePkg/Include/Library/PcdLib.h +++ b/MdePkg/Include/Library/PcdLib.h @@ -435,17 +435,16 @@ LibPcdSet64 ( /** - Sets a buffer for the token specified by TokenNumber to - the value specified by Buffer and SizeOfValue. Buffer to - be set is returned. The content of the buffer could be - overwritten if a Callback on SET is registered with this - TokenNumber. - - If SizeOfValue is greater than the maximum - size support by TokenNumber, then set SizeOfValue to the - maximum size supported by TokenNumber and return NULL to - indicate that the set operation was not actually performed. + Sets a buffer for the token specified by TokenNumber to the value + specified by Buffer and SizeOfValue. Buffer is returned. + If SizeOfValue is greater than the maximum size support by TokenNumber, + then set SizeOfValue to the maximum size supported by TokenNumber and + return NULL to indicate that the set operation was not actually performed. + + If SizeOfValue is set to MAX_ADDRESS, then SizeOfValue must be set to the + maximum size supported by TokenName and NULL must be returned. + If SizeOfValue is NULL, then ASSERT(). If SizeOfValue > 0 and Buffer is NULL, then ASSERT(). @param[in] TokenNumber The PCD token number to set a current value for. @@ -577,6 +576,8 @@ LibPcdSetEx64 ( supported by TokenNumber and return NULL to indicate that the set operation was not actually performed. + If Guid is NULL, then ASSERT(). + If SizeOfValue is NULL, then ASSERT(). If SizeOfValue > 0 and Buffer is NULL, then ASSERT(). @param[in] Guid Pointer to a 128-bit unique value that @@ -731,7 +732,7 @@ LibPcdGetNextToken ( **/ -CONST GUID* +GUID * EFIAPI LibPcdGetNextTokenSpace ( IN CONST GUID *Guid -- cgit v1.2.3