1) Sync PcdPpi guid with PCD arch spec.

2) Correct macro PatchPcdSetPtr


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@469 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2006-06-10 12:03:36 +00:00
parent e65e8d103d
commit 2a505eac61
9 changed files with 13 additions and 12 deletions

View File

@ -76,7 +76,7 @@ PcdDxeInit (
//
ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gPcdProtocolGuid);
BuildPcdDxeDataBase ();
//

View File

@ -47,13 +47,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<SourceFiles>
<Filename>Service.c</Filename>
<Filename>Pcd.c</Filename>
<Filename>Pcd.dxs</Filename>
</SourceFiles>
<Includes>
<PackageName>MdePkg</PackageName>
<PackageName>EdkModulePkg</PackageName>
</Includes>
<Protocols>
<Protocol Usage="ALWAYS_PRODUCED">Pcd</Protocol>
<Protocol Usage="ALWAYS_PRODUCED">PcdProtocol</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">Variable</Protocol>
</Protocols>
<Hobs>

View File

@ -57,7 +57,7 @@ GetWorker (
ASSERT (GetSize == Size || GetSize == 0);
IsPeiDb = (TokenNumber <= PEI_LOCAL_TOKEN_NUMBER) ? TRUE : FALSE;
IsPeiDb = (TokenNumber < PEI_LOCAL_TOKEN_NUMBER) ? TRUE : FALSE;
LocalTokenNumberTable = IsPeiDb ? mPcdDatabase->PeiDb.Init.LocalTokenNumberTable :
mPcdDatabase->DxeDb.Init.LocalTokenNumberTable;
@ -484,7 +484,7 @@ SetWorker (
ASSERT (Size == DxePcdGetSize (TokenNumber));
}
IsPeiDb = (TokenNumber <= PEI_LOCAL_TOKEN_NUMBER) ? TRUE : FALSE;
IsPeiDb = (TokenNumber < PEI_LOCAL_TOKEN_NUMBER) ? TRUE : FALSE;
LocalTokenNumberTable = IsPeiDb ? mPcdDatabase->PeiDb.Init.LocalTokenNumberTable :
mPcdDatabase->DxeDb.Init.LocalTokenNumberTable;

View File

@ -64,7 +64,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</Hob>
</Hobs>
<PPIs>
<Ppi Usage="ALWAYS_PRODUCED">Pcd</Ppi>
<Ppi Usage="ALWAYS_PRODUCED">PcdPpi</Ppi>
<Ppi Usage="ALWAYS_CONSUMED">ReadOnlyVariable</Ppi>
</PPIs>
<Guids>

View File

@ -57,7 +57,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<Protocol Usage="BY_START">WinNtIo</Protocol>
<Protocol Usage="TO_START">WinNtThunk</Protocol>
<Protocol Usage="TO_START">DevicePath</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">Pcd</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">PcdProtocol</Protocol>
</Protocols>
<Guids>
<GuidEntry Usage="ALWAYS_CONSUMED">

View File

@ -60,7 +60,7 @@ Module Name: PcdLib.h
#define PatchPcdSet32(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = Value)
#define PatchPcdSet64(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = Value)
#define PatchPcdSetBool(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = Value)
#define PatchPcdSetPtr(TokenName, Value, Size) CopyMem (_gPcd_BinaryPatch_##TokenName, Value, Size)
#define PatchPcdSetPtr(TokenName, Size, Buffer) CopyMem (_gPcd_BinaryPatch_##TokenName, Buffer, Size)
//
// Dynamic is via the protocol with only the TokenNumber as argument

View File

@ -20,7 +20,7 @@
extern EFI_GUID gPcdPpiGuid;
#define PCD_PPI_GUID \
{ 0x632df884, 0x8023, 0x4872, { 0xb6, 0x70, 0xb7, 0x4a, 0x30, 0x19, 0x16, 0xe9 } }
{ 0x6e81c58, 0x4ad7, 0x44bc, { 0x83, 0x90, 0xf1, 0x2, 0x65, 0xf7, 0x24, 0x80 } }
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) -1)

View File

@ -43,7 +43,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<PackageName>MdePkg</PackageName>
</Includes>
<Protocols>
<Protocol Usage="ALWAYS_CONSUMED">Pcd</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">PcdProtocol</Protocol>
</Protocols>
<Externs>
<Extern>

View File

@ -710,7 +710,7 @@
<C_Name>gEfiHiiProtocolGuid</C_Name>
<Guid>0xea816d2c, 0xcee5, 0x4f02, 0x99, 0xb5, 0xd3, 0x90, 0x5c, 0xbb, 0xd0, 0x77</Guid>
</Entry>
<Entry Name="Pcd">
<Entry Name="PcdProtocol">
<C_Name>gPcdProtocolGuid</C_Name>
<Guid>0x11b34006, 0xd85b, 0x4d0a, 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0x0e, 0xf7</Guid>
</Entry>
@ -1160,9 +1160,9 @@
<C_Name>gEfiPeiStatusCodePpiGuid</C_Name>
<Guid>0x229832d3, 0x7a30, 0x4b36, 0xb8, 0x27, 0xf4, 0x0c, 0xb7, 0xd4, 0x54, 0x36</Guid>
</Entry>
<Entry Name="Pcd">
<Entry Name="PcdPpi">
<C_Name>gPcdPpiGuid</C_Name>
<Guid>0x5d5c0e21, 0x749c, 0x4063, 0x81, 0xaf, 0xbc, 0x74, 0xfc, 0x79, 0xab, 0x5c</Guid>
<Guid>0x6e81c58, 0x4ad7, 0x44bc, 0x83, 0x90, 0xf1, 0x2, 0x65, 0xf7, 0x24, 0x80</Guid>
</Entry>
<Entry Name="BootScriptExecuter">
<C_Name>gEfiPeiBootScriptExecuterPpiGuid</C_Name>