]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove library instance of PeiServicesTablePointerLibMm7
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 15 Oct 2007 02:54:21 +0000 (02:54 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 15 Oct 2007 02:54:21 +0000 (02:54 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4113 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointer.c [deleted file]
MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf [deleted file]
MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.msa [deleted file]
MdePkg/MdePkg.dsc

diff --git a/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointer.c b/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointer.c
deleted file mode 100644 (file)
index 46fe308..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/** @file\r
-  PEI Services Table Pointer Library.\r
-\r
-  Copyright (c) 2006, Intel Corporation<BR>\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
-\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
-  Module Name:  PeiServicesTablePointer.c\r
-\r
-**/\r
-\r
-\r
-#include <PiPei.h>\r
-\r
-\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/PeiServicesLib.h>\r
-\r
-VOID\r
-EFIAPI\r
-SetPeiServicesTablePointer (\r
-  IN EFI_PEI_SERVICES     **PeiServices\r
-  )\r
-{\r
-  AsmWriteMm7 ((UINT64)(UINTN)PeiServices);\r
-}\r
-\r
-/**\r
-  The function returns the pointer to PeiServices.\r
-\r
-  The function returns the pointer to PeiServices.\r
-  It will ASSERT() if the pointer to PeiServices is NULL.\r
-\r
-  @retval  The pointer to PeiServices.\r
-\r
-**/\r
-EFI_PEI_SERVICES **\r
-EFIAPI\r
-GetPeiServicesTablePointer (\r
-  VOID\r
-  )\r
-{\r
-  EFI_PEI_SERVICES  **PeiServices;\r
-\r
-  PeiServices = (EFI_PEI_SERVICES **)(UINTN)AsmReadMm7 ();\r
-  ASSERT (PeiServices != NULL);\r
-  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
-  AsmWriteMm7 ((UINT64)(UINTN)PeiServices);\r
-  return EFI_SUCCESS;\r
-}\r
-\r
-/**\r
-  After memory initialization in PEI phase, the IDT table in temporary memory should \r
-  be migrated to memory, and the address of PeiServicesPointer also need to be updated  \r
-  immediately preceding the new IDT table.\r
-  \r
-  @param    PeiServices   The address of PeiServices pointer.\r
-**/\r
-VOID\r
-MigrateIdtTable (\r
-  IN EFI_PEI_SERVICES  **PeiServices\r
-  )\r
-{\r
-  UINTN           Size;\r
-  VOID            *NewBase;\r
-  EFI_STATUS      Status;\r
-  IA32_DESCRIPTOR Idtr;\r
-  \r
-  AsmReadIdtr (&Idtr);\r
-  \r
-  Size = Idtr.Limit + 1;\r
-  \r
-  Status = PeiServicesAllocatePool (Size, &NewBase);\r
-  ASSERT_EFI_ERROR (Status);\r
-  \r
-  CopyMem (NewBase, (VOID*)Idtr.Base, Size);\r
-  \r
-  Idtr.Base = (UINTN)NewBase;\r
-  AsmWriteIdtr (&Idtr);\r
-}\r
-\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf b/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf
deleted file mode 100644 (file)
index a037184..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#/** @file\r
-# Component description file for MM7 Pei Services Table Pointer Library\r
-#\r
-# PEI Services Table Library implementation that retrieves a pointer to the PEI\r
-#  Services Table from the MM7 on IA-32 and x64.\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
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = PeiServicesTablePointerLibMm7\r
-  FILE_GUID                      = e6e9c1f8-2c8a-4f4b-a27c-c382e4bb8e67\r
-  MODULE_TYPE                    = PEIM\r
-  VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PeiServicesTablePointerLib|PEIM PEI_CORE SEC\r
-  EDK_RELEASE_VERSION            = 0x00020000\r
-  EFI_SPECIFICATION_VERSION      = 0x00020000\r
-\r
-  CONSTRUCTOR                    = PeiServicesTablePointerLibConstructor\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-#  VALID_ARCHITECTURES           = IA32 X64\r
-#\r
-\r
-[Sources.common]\r
-  PeiServicesTablePointer.c\r
-\r
-\r
-[Packages]\r
-  MdePkg/MdePkg.dec\r
-\r
-\r
-[LibraryClasses]\r
-  DebugLib\r
-  BaseLib\r
-  BaseMemoryLib\r
-  PeiServicesLib\r
diff --git a/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.msa b/MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.msa
deleted file mode 100644 (file)
index 2e6d8fb..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
-  <MsaHeader>\r
-    <ModuleName>PeiServicesTablePointerLibMm7</ModuleName>\r
-    <ModuleType>PEIM</ModuleType>\r
-    <GuidValue>e6e9c1f8-2c8a-4f4b-a27c-c382e4bb8e67</GuidValue>\r
-    <Version>1.0</Version>\r
-    <Abstract>Component description file for MM7 Pei Services Table Pointer Library</Abstract>\r
-    <Description>PEI Services Table Library implementation that retrieves a pointer to the PEI
-      Services Table from the MM7 on IA-32 and x64.</Description>\r
-    <Copyright>Copyright (c) 2006, Intel Corporation.</Copyright>\r
-    <License>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.</License>\r
-    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
-  </MsaHeader>\r
-  <ModuleDefinitions>\r
-    <SupportedArchitectures>IA32 X64</SupportedArchitectures>\r
-    <BinaryModule>false</BinaryModule>\r
-    <OutputFileBasename>PeiServicesTablePointerLibMm7</OutputFileBasename>\r
-  </ModuleDefinitions>\r
-  <LibraryClassDefinitions>\r
-    <LibraryClass Usage="ALWAYS_PRODUCED" SupModuleList="PEIM PEI_CORE">\r
-      <Keyword>PeiServicesTablePointerLib</Keyword>\r
-    </LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">\r
-      <Keyword>BaseLib</Keyword>\r
-    </LibraryClass>\r
-    <LibraryClass Usage="ALWAYS_CONSUMED">\r
-      <Keyword>DebugLib</Keyword>\r
-    </LibraryClass>\r
-  </LibraryClassDefinitions>\r
-  <SourceFiles>\r
-    <Filename>PeiServicesTablePointer.c</Filename>\r
-  </SourceFiles>\r
-  <PackageDependencies>\r
-    <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
-  </PackageDependencies>\r
-  <Externs>\r
-    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
-    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
-    <Extern>\r
-      <Constructor>PeiServicesTablePointerLibConstructor</Constructor>\r
-    </Extern>\r
-  </Externs>\r
-</ModuleSurfaceArea>
\ No newline at end of file
index f394a9d50046b8014263eba1a0def4d908c24bb2..278fc3750fb18bdef65335b0254d4a99b18ea038 100644 (file)
   MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
   MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
   MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
-  MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf\r
 \r
 [Components.X64]\r
   MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf\r
   MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
   MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
   MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
-  MdePkg/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf\r
 \r
 [Components.IPF]\r
   MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r