]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1, remove MigrateIdt interface, 2, remove unused library class
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Sep 2008 08:04:48 +0000 (08:04 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Sep 2008 08:04:48 +0000 (08:04 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5793 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h [deleted file]
MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c
MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf

diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h b/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h
deleted file mode 100644 (file)
index 61bc1eb..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/** @file\r
-  Internal include file of PEI Services Table Pointer.\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
-**/\r
-\r
-\r
-#ifndef __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
-#define __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
-\r
-\r
-#include <PiPei.h>\r
-\r
-#include <Library/BaseLib.h>\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PeiServicesLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-  \r
-#endif\r
index 97abaa4aeb5889d7b2731a80a2db6cd2566d39b7..a1959e121d61a73ea89026293b36c2123ffaf4c5 100644 (file)
 \r
 **/\r
 \r
-#include "InternalPeiServicesTablePointer.h"\r
+#include <PiPei.h>\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 /**\r
   \r
@@ -37,7 +41,7 @@ GetPeiServicesTablePointer (
   IA32_DESCRIPTOR   Idtr;\r
   \r
   AsmReadIdtr (&Idtr);\r
-  PeiServices = (EFI_PEI_SERVICES **) (*(UINTN*)(Idtr.Base - 4));\r
+  PeiServices = (EFI_PEI_SERVICES **) (*(UINTN*)(Idtr.Base - sizeof (UINTN)));\r
   ASSERT (PeiServices != NULL);\r
   return PeiServices;\r
 }\r
@@ -64,38 +68,7 @@ SetPeiServicesTablePointer (
   IA32_DESCRIPTOR   Idtr;\r
   \r
   AsmReadIdtr (&Idtr);\r
-  (*(UINTN*)(Idtr.Base - 4)) = (UINTN)PeiServicesTablePointer;\r
+  (*(UINTN*)(Idtr.Base - sizeof (UINTN))) = (UINTN)PeiServicesTablePointer;\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
-EFIAPI\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 = sizeof(UINTN) + (Idtr.Limit + 1); \r
-  \r
-  Status = PeiServicesAllocatePool (Size, &NewBase);\r
-  ASSERT_EFI_ERROR (Status);\r
-  \r
-  CopyMem ((VOID*)((UINTN)NewBase + sizeof(UINTN)), (VOID*)Idtr.Base, (Idtr.Limit + 1));\r
-  \r
-  Idtr.Base = (UINTN)NewBase + sizeof(UINTN);\r
-  AsmWriteIdtr (&Idtr);\r
-  SetPeiServicesTablePointer(PeiServices);  \r
-}  \r
 \r
index 6baad7a600e19fffb93b052bd49570fe91864a32..8d5f430939f88b23a6b915258170f66916b6f39c 100644 (file)
 \r
 [Sources]\r
   PeiServicesTablePointer.c\r
-  InternalPeiServicesTablePointer.h\r
 \r
 \r
 [LibraryClasses]\r
   DebugLib\r
-  BaseMemoryLib\r
-  PeiServicesLib\r
   BaseLib\r
 \r
 \r