\r
**/\r
\r
+//\r
+// Include common header file for this module.\r
+//\r
+#include "InternalPeiServicesTablePointer.h"\r
+\r
EFI_PEI_SERVICES **\r
EFIAPI\r
AsmPeiSevicesTablePointer (\r
#ifndef __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
#define __INTERNAL_PEI_SERVICES_TABLE_POINTER_H__\r
\r
+\r
+#include <PiPei.h>\r
+//\r
+// The Library classes this module consumes\r
+//\r
+#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/DebugLib.h>\r
+\r
extern \r
EFI_PEI_SERVICES **\r
EFIAPI\r
\r
#include "InternalPeiServicesTablePointer.h"\r
\r
-\r
/**\r
\r
The function returns the pointer to PeiServicee following\r
--- /dev/null
+#/** @file\r
+# Component description file for IPF KR1 Pei Services Table Pointer Library\r
+#\r
+# PEI Services Table Library implementation that retrieves a pointer to the PEI\r
+# Services Table from the KR1 register on IPF.\r
+# Copyright (c) 2006 - 2007, 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
+################################################################################\r
+#\r
+# Defines Section - statements that will be processed to create a Makefile.\r
+#\r
+################################################################################\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = PeiServicesTablePointerLibIdt\r
+ FILE_GUID = DED3F743-CE2C-4ba6-92A2-FFCE2A6D72D9\r
+ MODULE_TYPE = PEIM\r
+ VERSION_STRING = 1.0\r
+ LIBRARY_CLASS = PeiServicesTablePointerLib|PEIM PEI_CORE \r
+ EDK_RELEASE_VERSION = 0x00020000\r
+ EFI_SPECIFICATION_VERSION = 0x00020000\r
+\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
+################################################################################\r
+#\r
+# Sources Section - list of files that are required for the build to succeed.\r
+#\r
+################################################################################\r
+[Sources.Ia32]\r
+ Ia32/AsmPeiSevicesTablePointer.c||MSFT|||\r
+ Ia32/AsmPeiSevicesTablePointer.S||GCC|||\r
+ PeiServicesTablePointer.c\r
+\r
+[Sources.X64]\r
+ x64/AsmPeiSevicesTablePointer.asm||MSFT|||\r
+ x64/AsmPeiSevicesTablePointer.S||GCC|||\r
+ PeiServicesTablePointer.c\r
+\r
+\r
+################################################################################\r
+#\r
+# Library Class Section - list of Library Classes that are required for\r
+# this module.\r
+#\r
+################################################################################\r
+\r
+[LibraryClasses]\r
+ DebugLib\r
+\r
-#------------------------------------------------------------------------------
-#
-# 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.
-#
-# Module Name:
-#
-# AsmPeiSevicesTablePointer.S
-#
-# Abstract:
-#
-# AsmPeiSevicesTablePointer function
-#
-# Notes:
-#
-#------------------------------------------------------------------------------
-
-
-#------------------------------------------------------------------------------
-# EFI_PEI_SERVICES **
-# EFIAPI
-# AsmPeiSevicesTablePointer (
-# );
-#------------------------------------------------------------------------------
-.global AsmPeiSevicesTablePointer;
-.align 16;
-AsmPeiSevicesTablePointer:
- sidt (%rcx)
- movq -8(%rcx), %rcx
- ret
+#------------------------------------------------------------------------------\r
+#\r
+# Copyright (c) 2006, Intel Corporation\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:\r
+#\r
+# AsmPeiSevicesTablePointer.S\r
+#\r
+# Abstract:\r
+#\r
+# AsmPeiSevicesTablePointer function\r
+#\r
+# Notes:\r
+#\r
+#------------------------------------------------------------------------------\r
+\r
+\r
+#------------------------------------------------------------------------------\r
+# EFI_PEI_SERVICES **\r
+# EFIAPI\r
+# AsmPeiSevicesTablePointer (\r
+# );\r
+#------------------------------------------------------------------------------\r
+.global AsmPeiSevicesTablePointer;\r
+.align 16;\r
+AsmPeiSevicesTablePointer:\r
+ sidt (%rcx)\r
+ movq -8(%rcx), %rcx\r
+ ret\r
${WORKSPACE}\MdePkg\Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
${WORKSPACE}/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
${WORKSPACE}/MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
+ ${WORKSPACE}/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
\r
[Components.X64]\r
${WORKSPACE}\MdePkg\Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf\r
${WORKSPACE}\MdePkg\Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
${WORKSPACE}/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
${WORKSPACE}/MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
+ ${WORKSPACE}/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
\r
[Components.IPF]\r
${WORKSPACE}/MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r