summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-02 09:58:37 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-02 09:58:37 +0000
commit1ece02b57e1ecae99cd951d67c5a534952c0b330 (patch)
tree39fb18cf58a90b93429ea58e0db42559922f6591
parent71339b0da0eeca19155fc48295533532b7025b9f (diff)
downloadedk2-1ece02b57e1ecae99cd951d67c5a534952c0b330.tar.gz
edk2-1ece02b57e1ecae99cd951d67c5a534952c0b330.tar.bz2
edk2-1ece02b57e1ecae99cd951d67c5a534952c0b330.zip
Support DxeMemoryLib building.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2962 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf95
-rw-r--r--MdePkg/Library/DxeMemoryLib/MemLibGuid.c2
-rw-r--r--MdePkg/Library/DxeMemoryLib/MemLibInternals.h15
-rw-r--r--MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c1
-rw-r--r--MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c1
-rw-r--r--MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c1
-rw-r--r--MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c1
-rw-r--r--MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c1
8 files changed, 117 insertions, 0 deletions
diff --git a/MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf b/MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf
new file mode 100644
index 0000000000..3cc3f59819
--- /dev/null
+++ b/MdePkg/Library/DxeMemoryLib/DxeMemoryLib.inf
@@ -0,0 +1,95 @@
+#/** @file
+# Component description file for Dxe Memory Library.
+#
+# Base Memory Library implementation that uses EFI Boot Services
+# where possible for size reduction.
+# Copyright (c) 2006, Intel Corporation.
+#
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+#
+#**/
+
+################################################################################
+#
+# Defines Section - statements that will be processed to create a Makefile.
+#
+################################################################################
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = DxeMemoryLib
+ FILE_GUID = f1bbe03d-2f28-4dee-bec7-d98d7a30c36a
+ MODULE_TYPE = UEFI_DRIVER
+ VERSION_STRING = 1.0
+ LIBRARY_CLASS = BaseMemoryLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
+ EDK_RELEASE_VERSION = 0x00020000
+ EFI_SPECIFICATION_VERSION = 0x00020000
+
+
+#
+# The following information is for reference only and not required by the build tools.
+#
+# VALID_ARCHITECTURES = IA32 X64 IPF EBC
+#
+
+################################################################################
+#
+# Sources Section - list of files that are required for the build to succeed.
+#
+################################################################################
+
+[Sources.common]
+ ScanMem64Wrapper.c
+ ScanMem32Wrapper.c
+ ScanMem16Wrapper.c
+ ScanMem8Wrapper.c
+ ZeroMemWrapper.c
+ CompareMemWrapper.c
+ SetMem64Wrapper.c
+ SetMem32Wrapper.c
+ SetMem16Wrapper.c
+ SetMemWrapper.c
+ CopyMemWrapper.c
+ MemLibGeneric.c
+ MemLibGuid.c
+ MemLib.c
+ MemLibInternals.h
+
+
+################################################################################
+#
+# Includes Section - list of Include locations that are required for
+# this module.
+#
+################################################################################
+
+[Includes]
+
+################################################################################
+#
+# Package Dependency Section - list of Package files that are required for
+# this module.
+#
+################################################################################
+
+[Packages]
+ MdePkg/MdePkg.dec
+
+
+################################################################################
+#
+# Library Class Section - list of Library Classes that are required for
+# this module.
+#
+################################################################################
+
+[LibraryClasses]
+ BaseLib
+ UefiBootServicesTableLib
+ DebugLib
+
diff --git a/MdePkg/Library/DxeMemoryLib/MemLibGuid.c b/MdePkg/Library/DxeMemoryLib/MemLibGuid.c
index 36da5b7424..15e5294d9f 100644
--- a/MdePkg/Library/DxeMemoryLib/MemLibGuid.c
+++ b/MdePkg/Library/DxeMemoryLib/MemLibGuid.c
@@ -23,6 +23,8 @@
**/
+#include "MemLibInternals.h"
+
/**
Copies a source GUID to a destination GUID.
diff --git a/MdePkg/Library/DxeMemoryLib/MemLibInternals.h b/MdePkg/Library/DxeMemoryLib/MemLibInternals.h
index 8646b24e79..db2784ef4f 100644
--- a/MdePkg/Library/DxeMemoryLib/MemLibInternals.h
+++ b/MdePkg/Library/DxeMemoryLib/MemLibInternals.h
@@ -26,6 +26,21 @@
#ifndef __MEM_LIB_INTERNALS__
#define __MEM_LIB_INTERNALS__
+//
+// The package level header files this module uses
+//
+#include <Uefi.h>
+//
+// The protocols, PPI and GUID defintions for this module
+//
+//
+// The Library classes this module consumes
+//
+#include <Library/BaseMemoryLib.h>
+#include <Library/DebugLib.h>
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/BaseLib.h>
+
/**
Copy Length bytes from Source to Destination.
diff --git a/MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c b/MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c
index 95f134bbda..5964800b17 100644
--- a/MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c
+++ b/MdePkg/Library/DxeMemoryLib/ScanMem16Wrapper.c
@@ -23,6 +23,7 @@
**/
+
#include "MemLibInternals.h"
/**
diff --git a/MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c b/MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c
index 2b21b22166..9b99df1abe 100644
--- a/MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c
+++ b/MdePkg/Library/DxeMemoryLib/ScanMem8Wrapper.c
@@ -23,6 +23,7 @@
**/
+
#include "MemLibInternals.h"
/**
diff --git a/MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c b/MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c
index 15f8205ebc..35be6c7fd0 100644
--- a/MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c
+++ b/MdePkg/Library/DxeMemoryLib/SetMem32Wrapper.c
@@ -23,6 +23,7 @@
**/
+
#include "MemLibInternals.h"
/**
diff --git a/MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c b/MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c
index 981a7d4731..15f29fc97f 100644
--- a/MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c
+++ b/MdePkg/Library/DxeMemoryLib/SetMem64Wrapper.c
@@ -23,6 +23,7 @@
**/
+
#include "MemLibInternals.h"
/**
diff --git a/MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c b/MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c
index 90e607c0ce..b0ac484c6d 100644
--- a/MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c
+++ b/MdePkg/Library/DxeMemoryLib/ZeroMemWrapper.c
@@ -23,6 +23,7 @@
**/
+
#include "MemLibInternals.h"
/**