/** @file\r
PCD Library Class Interface Declarations\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
\r
-\r
-Module Name: PcdLib.h\r
-\r
**/\r
\r
#ifndef __PCD_LIB_H__\r
#define PatchPcdSet64(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))\r
#define PatchPcdSetBool(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))\r
#define PatchPcdSetPtr(TokenName, Size, Buffer) \\r
- CopyMem (_gPcd_BinaryPatch_##TokenName, (Buffer), (Size))\r
+ LibPatchPcdSetPtr ( \\r
+ _gPcd_BinaryPatch_##TokenName, \\r
+ (UINTN)_PCD_PATCHABLE_##TokenName##_SIZE, \\r
+ (Size), \\r
+ (Buffer) \\r
+ )\r
\r
//\r
// Dynamic is via the protocol with only the TokenNumber as argument\r
LibPcdSetPtr (\r
IN UINTN TokenNumber,\r
IN OUT UINTN *SizeOfBuffer,\r
- IN VOID *Value\r
+ IN VOID *Buffer\r
);\r
\r
\r