]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the library constructor as it is unnecessary because KR7 is a system global...
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Oct 2008 02:32:44 +0000 (02:32 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Oct 2008 02:32:44 +0000 (02:32 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6133 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointerLibKr7.inf

index 8601c7326c1c0f45eb5e88035b34df08315df3a8..1c21263735041f8312e4d67f1efd1790048bfd06 100644 (file)
@@ -39,29 +39,6 @@ GetPeiServicesTablePointer (
   return PeiServices;\r
 }\r
 \r
-/**\r
-  The constructor function caches the pointer to PEI services.\r
-\r
-  The constructor function caches the pointer to PEI services.\r
-  It will always return EFI_SUCCESS.\r
-\r
-  @param  FfsHeader   Pointer to FFS header the loaded driver.\r
-  @param  PeiServices Pointer to the PEI services.\r
-\r
-  @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiServicesTablePointerLibConstructor (\r
-  IN EFI_PEI_FILE_HANDLE  *FfsHeader,\r
-  IN EFI_PEI_SERVICES     **PeiServices\r
-  )\r
-{\r
-  AsmWriteKr7 ((UINT64)(UINTN)PeiServices);\r
-  return EFI_SUCCESS;\r
-}\r
-\r
 /**\r
   The function set the pointer of PEI services in KR7 register \r
   according to PI specification.\r
index e1443f67dcaf4c7b9a0050e3207e2a021f638849..5d7b4a07e9e069cd23dbbca8b5d38d647185ceb9 100644 (file)
@@ -1,7 +1,7 @@
 #/** @file\r
 #\r
 # PEI Services Table Library implementation that retrieves a pointer to the PEI\r
-# Copyright (c) 2006 - 2007, Intel Corporation.\r
+# Copyright (c) 2006 - 2008, 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
@@ -23,7 +23,6 @@
   EDK_RELEASE_VERSION            = 0x00020000\r
   EFI_SPECIFICATION_VERSION      = 0x00020000\r
 \r
-  CONSTRUCTOR                    = PeiServicesTablePointerLibConstructor\r
 \r
 #\r
 #  VALID_ARCHITECTURES           = IPF\r