]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/PeiMemoryLib/MemLib.c
Make MDE package pass intel IPF compiler with /W4 /WX switched on.
[mirror_edk2.git] / MdePkg / Library / PeiMemoryLib / MemLib.c
CommitLineData
878ddf1f 1/** @file\r
2 Base Memory Library.\r
3\r
4 Copyright (c) 2006, Intel Corporation<BR>\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 Module Name: MemLib.c\r
14\r
15**/\r
16\r
58251024 17#include "MemLibInternals.h"\r
18\r
878ddf1f 19VOID *\r
20EFIAPI\r
21InternalMemCopyMem (\r
22 OUT VOID *Destination,\r
23 IN CONST VOID *Source,\r
24 IN UINTN Length\r
25 )\r
26{\r
27 (*GetPeiServicesTablePointer ())->CopyMem (\r
28 Destination,\r
29 (VOID*)Source,\r
30 Length\r
31 );\r
32 return Destination;\r
33}\r
34\r
35VOID *\r
36EFIAPI\r
37InternalMemSetMem (\r
38 OUT VOID *Buffer,\r
39 IN UINTN Size,\r
40 IN UINT8 Value\r
41 )\r
42{\r
43 (*GetPeiServicesTablePointer ())->SetMem (\r
44 Buffer,\r
45 Size,\r
46 Value\r
47 );\r
48 return Buffer;\r
49}\r