]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeiMemoryLib/MemLib.c
6f81e21c240a5c4b1caed9e1702f8c1962c22b54
[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 Module Name: MemLib.c
14
15 **/
16
17 #include "MemLibInternals.h"
18
19 VOID *
20 EFIAPI
21 InternalMemCopyMem (
22 OUT VOID *Destination,
23 IN CONST VOID *Source,
24 IN UINTN Length
25 )
26 {
27 (*GetPeiServicesTablePointer ())->CopyMem (
28 Destination,
29 (VOID*)Source,
30 Length
31 );
32 return Destination;
33 }
34
35 VOID *
36 EFIAPI
37 InternalMemSetMem (
38 OUT VOID *Buffer,
39 IN UINTN Size,
40 IN UINT8 Value
41 )
42 {
43 (*GetPeiServicesTablePointer ())->SetMem (
44 Buffer,
45 Size,
46 Value
47 );
48 return Buffer;
49 }