summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiServicesTablePointerLibKr7
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-20 02:32:44 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-20 02:32:44 +0000
commitd53b79dd220264b5768612803ac4a055685b755f (patch)
tree86296ebb1229c6e4a806af1d4ba655ed1916facb /MdePkg/Library/PeiServicesTablePointerLibKr7
parent8d2379637c6e442208a585fcdfd40c3c9f7d8992 (diff)
downloadedk2-d53b79dd220264b5768612803ac4a055685b755f.tar.gz
edk2-d53b79dd220264b5768612803ac4a055685b755f.tar.bz2
edk2-d53b79dd220264b5768612803ac4a055685b755f.zip
Remove the library constructor as it is unnecessary because KR7 is a system global resource.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6133 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiServicesTablePointerLibKr7')
-rw-r--r--MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c23
-rw-r--r--MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf3
2 files changed, 1 insertions, 25 deletions
diff --git a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
index 8601c7326c..1c21263735 100644
--- a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
+++ b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
@@ -40,29 +40,6 @@ GetPeiServicesTablePointer (
}
/**
- The constructor function caches the pointer to PEI services.
-
- The constructor function caches the pointer to PEI services.
- It will always return EFI_SUCCESS.
-
- @param FfsHeader Pointer to FFS header the loaded driver.
- @param PeiServices Pointer to the PEI services.
-
- @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
-
-**/
-EFI_STATUS
-EFIAPI
-PeiServicesTablePointerLibConstructor (
- IN EFI_PEI_FILE_HANDLE *FfsHeader,
- IN EFI_PEI_SERVICES **PeiServices
- )
-{
- AsmWriteKr7 ((UINT64)(UINTN)PeiServices);
- return EFI_SUCCESS;
-}
-
-/**
The function set the pointer of PEI services in KR7 register
according to PI specification.
diff --git a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf
index e1443f67dc..5d7b4a07e9 100644
--- a/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf
+++ b/MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf
@@ -1,7 +1,7 @@
#/** @file
#
# PEI Services Table Library implementation that retrieves a pointer to the PEI
-# Copyright (c) 2006 - 2007, Intel Corporation.
+# Copyright (c) 2006 - 2008, 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
@@ -23,7 +23,6 @@
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x00020000
- CONSTRUCTOR = PeiServicesTablePointerLibConstructor
#
# VALID_ARCHITECTURES = IPF