]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Support DxeMemoryLib building.
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Jul 2007 09:58:37 +0000 (09:58 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Jul 2007 09:58:37 +0000 (09:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2962 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf [new file with mode: 0644]
MdePkg/Library/DxeMemoryLib/MemLibGuid.c
MdePkg/Library/DxeMemoryLib/MemLibInternals.h
MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c
MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c
MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c

diff --git a/MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf b/MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf
new file mode 100644 (file)
index 0000000..3cc3f59
--- /dev/null
@@ -0,0 +1,95 @@
+#/** @file\r
+# Component description file for Dxe Memory Library.\r
+#\r
+# Base Memory Library implementation that uses EFI Boot Services\r
+#  where possible for size reduction.\r
+# Copyright (c) 2006, Intel Corporation.\r
+#\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
+#  http://opensource.org/licenses/bsd-license.php\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
+#**/\r
+\r
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = DxeMemoryLib\r
+  FILE_GUID                      = f1bbe03d-2f28-4dee-bec7-d98d7a30c36a\r
+  MODULE_TYPE                    = UEFI_DRIVER\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = BaseMemoryLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER \r
+  EDK_RELEASE_VERSION            = 0x00020000\r
+  EFI_SPECIFICATION_VERSION      = 0x00020000\r
+\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+\r
+[Sources.common]\r
+  ScanMem64Wrapper.c\r
+  ScanMem32Wrapper.c\r
+  ScanMem16Wrapper.c\r
+  ScanMem8Wrapper.c\r
+  ZeroMemWrapper.c\r
+  CompareMemWrapper.c\r
+  SetMem64Wrapper.c\r
+  SetMem32Wrapper.c\r
+  SetMem16Wrapper.c\r
+  SetMemWrapper.c\r
+  CopyMemWrapper.c\r
+  MemLibGeneric.c\r
+  MemLibGuid.c\r
+  MemLib.c\r
+  MemLibInternals.h\r
+\r
+\r
+################################################################################\r
+#\r
+# Includes Section - list of Include locations that are required for\r
+#                    this module.\r
+#\r
+################################################################################\r
+\r
+[Includes]\r
+\r
+################################################################################\r
+#\r
+# Package Dependency Section - list of Package files that are required for\r
+#                              this module.\r
+#\r
+################################################################################\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+#                         this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+  UefiBootServicesTableLib\r
+  DebugLib\r
+\r
index 36da5b742424ea92fbe05836e41d9b6587ebac1c..15e5294d9fa6116f13c508278dbf860fd720f283 100644 (file)
@@ -23,6 +23,8 @@
 \r
 **/\r
 \r
+#include "MemLibInternals.h"\r
+\r
 /**\r
   Copies a source GUID to a destination GUID.\r
 \r
index 8646b24e7902fd205824a613d65b58ca7b998719..db2784ef4f2360f6652a70767e212c701440b207 100644 (file)
 #ifndef __MEM_LIB_INTERNALS__\r
 #define __MEM_LIB_INTERNALS__\r
 \r
+//\r
+// The package level header files this module uses\r
+//\r
+#include <Uefi.h>\r
+//\r
+// The protocols, PPI and GUID defintions for this module\r
+//\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseLib.h>\r
+\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
index 95f134bbda63539802092ea8b28e755cc5a3014f..5964800b173b39f286c507a3524945b4865c1c59 100644 (file)
@@ -23,6 +23,7 @@
 \r
 **/\r
 \r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 2b21b22166ddd7d8afaa353bb8c576c51e5153ad..9b99df1abe8b57a437df5985db8d1195aa22b919 100644 (file)
@@ -23,6 +23,7 @@
 \r
 **/\r
 \r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 15f8205ebc2c88ed16ca0bcc18f8c0208155cfdf..35be6c7fd0edfc89dfc719e82791c27c1fb076f2 100644 (file)
@@ -23,6 +23,7 @@
 \r
 **/\r
 \r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 981a7d4731d50e950b4b2822ebed733da8cbea4c..15f29fc97f30571eee0e83b0e035df4039de6f30 100644 (file)
@@ -23,6 +23,7 @@
 \r
 **/\r
 \r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 90e607c0ce790b1890746c9d5eedf8f94e18efbe..b0ac484c6d937a37589aa01ba7399f6d5970953b 100644 (file)
@@ -23,6 +23,7 @@
 \r
 **/\r
 \r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r