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