]>
Commit | Line | Data |
---|---|---|
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 | |
bf231ea6 | 17 | \r |
c7d265a9 | 18 | /**\r |
19 | \r | |
20 | The function returns the pointer to PeiServicee following\r | |
21 | PI1.0.\r | |
22 | \r | |
23 | For IA32, the four-bytes field immediately prior to new IDT\r | |
24 | base addres is used to save the EFI_PEI_SERVICES**.\r | |
25 | For x64, the eight-bytes field immediately prior to new IDT\r | |
bf231ea6 | 26 | base addres is used to save the EFI_PEI_SERVICES**\r |
c7d265a9 | 27 | @retval The pointer to PeiServices.\r |
28 | \r | |
29 | **/\r | |
30 | EFI_PEI_SERVICES **\r | |
31 | EFIAPI\r | |
32 | GetPeiServicesTablePointer (\r | |
33 | VOID\r | |
34 | )\r | |
35 | {\r | |
36 | EFI_PEI_SERVICES **PeiServices;\r | |
37 | \r | |
38 | PeiServices = (EFI_PEI_SERVICES **) AsmPeiSevicesTablePointer ();\r | |
39 | ASSERT (PeiServices != NULL);\r | |
40 | return PeiServices;\r | |
41 | }\r | |
42 | \r |