]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/DxeMemoryLib/MemLib.c
add a error macro to prevent this file from included for now #error "UEFI 2.1 HII...
[mirror_edk2.git] / MdePkg / Library / DxeMemoryLib / MemLib.c
CommitLineData
dd51a993 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
17#include "MemLibInternals.h"\r
18\r
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 gBS->CopyMem (Destination, (VOID*)Source, Length);\r
28 return Destination;\r
29}\r
30\r
31VOID *\r
32EFIAPI\r
33InternalMemSetMem (\r
34 OUT VOID *Buffer,\r
35 IN UINTN Size,\r
36 IN UINT8 Value\r
37 )\r
38{\r
39 gBS->SetMem (Buffer, Size, Value);\r
40 return Buffer;\r
41}\r