Fix track EDKT106 & EDKT112: map LibPcdSetPtr function for PatchPcdSetPtr macro function defined in PcdLib library class

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1381 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2
2006-08-24 17:04:56 +00:00
parent 82810f3b0f
commit 7085597507
2 changed files with 15 additions and 3 deletions

View File

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