]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c
To support GCC build. Currently, it could not pass GCC build,since tool could not...
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLibIdt / PeiServicesTablePointer.c
CommitLineData
bf231ea6
A
1/** @file\r
2 PEI Services Table Pointer Library for IA-32 and X64.\r
3\r
4 Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13**/\r
c7d265a9 14\r
15#include "InternalPeiServicesTablePointer.h"\r
16\r
17/**\r
18 \r
19 The function returns the pointer to PeiServicee following\r
20 PI1.0.\r
21 \r
22 For IA32, the four-bytes field immediately prior to new IDT\r
23 base addres is used to save the EFI_PEI_SERVICES**.\r
24 For x64, the eight-bytes field immediately prior to new IDT\r
bf231ea6 25 base addres is used to save the EFI_PEI_SERVICES**\r
c7d265a9 26 @retval The pointer to PeiServices.\r
27\r
28**/\r
29EFI_PEI_SERVICES **\r
30EFIAPI\r
31GetPeiServicesTablePointer (\r
32 VOID\r
33 )\r
34{\r
35 EFI_PEI_SERVICES **PeiServices;\r
36\r
37 PeiServices = (EFI_PEI_SERVICES **) AsmPeiSevicesTablePointer ();\r
38 ASSERT (PeiServices != NULL);\r
39 return PeiServices;\r
40}\r
41\r