summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Library/PcdLib.h
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 17:04:56 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-24 17:04:56 +0000
commit7085597507e62932b823a97a590dd05f2716f82e (patch)
tree6c15fc6b068292049baceddd0c179ec533209acb /MdePkg/Include/Library/PcdLib.h
parent82810f3b0f9ba49ed2d9f96c5b53e90dd7e66d88 (diff)
downloadedk2-7085597507e62932b823a97a590dd05f2716f82e.tar.gz
edk2-7085597507e62932b823a97a590dd05f2716f82e.tar.bz2
edk2-7085597507e62932b823a97a590dd05f2716f82e.zip
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
Diffstat (limited to 'MdePkg/Include/Library/PcdLib.h')
-rw-r--r--MdePkg/Include/Library/PcdLib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h
index a0201049a5..038443b993 100644
--- a/MdePkg/Include/Library/PcdLib.h
+++ b/MdePkg/Include/Library/PcdLib.h
@@ -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