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