]>
Commit | Line | Data |
---|---|---|
bf231ea6 A |
1 | /** @file\r |
2 | PEI Services Table Pointer Library implementation for IPF that uses Kernel \r | |
3 | Register 7 to store the pointer.\r | |
c7d265a9 | 4 | \r |
bf231ea6 A |
5 | Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r |
6 | All rights reserved. This program and the accompanying materials \r | |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
c7d265a9 | 10 | \r |
bf231ea6 A |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
c7d265a9 | 13 | \r |
bf231ea6 | 14 | **/\r |
c7d265a9 | 15 | \r |
c7d265a9 | 16 | \r |
17 | #include <Library/BaseLib.h>\r | |
18 | \r | |
19 | /**\r | |
20 | The function returns the pointer to PeiServices.\r | |
21 | \r | |
22 | The function returns the pointer to PeiServices.\r | |
23 | It will ASSERT() if the pointer to PeiServices is NULL.\r | |
24 | \r | |
25 | @retval The pointer to PeiServices.\r | |
26 | \r | |
27 | **/\r | |
28 | EFI_PEI_SERVICES **\r | |
29 | EFIAPI\r | |
30 | GetPeiServicesTablePointer (\r | |
31 | VOID\r | |
32 | )\r | |
33 | {\r | |
34 | EFI_PEI_SERVICES **PeiServices;\r | |
35 | \r | |
36 | PeiServices = (EFI_PEI_SERVICES **)(UINTN)AsmReadKr7 ();\r | |
37 | ASSERT (PeiServices != NULL);\r | |
38 | return PeiServices;\r | |
39 | }\r | |
40 | \r |