]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
Checked in part of MDE library instances following PI and UEFI. It includes:
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLibKr7 / PeiServicesTablePointer.c
1 /*++
2
3 Copyright (c) 2006 Intel Corporation. All rights reserved
4 This software and associated documentation (if any) is furnished
5 under a license and may only be used or copied in accordance
6 with the terms of the license. Except as permitted by such
7 license, no part of this software or documentation may be
8 reproduced, stored in a retrieval system, or transmitted in any
9 form or by any means without the express written consent of
10 Intel Corporation.
11
12
13 Module Name:
14
15 PeiServicesTablePointer.c
16
17 Abstract:
18
19 PEI Services Table Pointer Library.
20
21 --*/
22
23 #include <Library/BaseLib.h>
24
25 /**
26 The function returns the pointer to PeiServices.
27
28 The function returns the pointer to PeiServices.
29 It will ASSERT() if the pointer to PeiServices is NULL.
30
31 @retval The pointer to PeiServices.
32
33 **/
34 EFI_PEI_SERVICES **
35 EFIAPI
36 GetPeiServicesTablePointer (
37 VOID
38 )
39 {
40 EFI_PEI_SERVICES **PeiServices;
41
42 PeiServices = (EFI_PEI_SERVICES **)(UINTN)AsmReadKr7 ();
43 ASSERT (PeiServices != NULL);
44 return PeiServices;
45 }
46