]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/PeiServicesTablePointerLibKr7/PeiServicesTablePointer.c
Removed MdePkg usage of ModuleName: in file headers
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLibKr7 / PeiServicesTablePointer.c
CommitLineData
c7d265a9 1/*++\r
2\r
3Copyright (c) 2006 Intel Corporation. All rights reserved\r
4This software and associated documentation (if any) is furnished\r
5under a license and may only be used or copied in accordance\r
6with the terms of the license. Except as permitted by such\r
7license, no part of this software or documentation may be\r
8reproduced, stored in a retrieval system, or transmitted in any\r
9form or by any means without the express written consent of\r
10Intel Corporation.\r
11\r
12\r
c7d265a9 13\r
14 PEI Services Table Pointer Library.\r
15 \r
16--*/\r
17\r
18#include <Library/BaseLib.h>\r
19\r
20/**\r
21 The function returns the pointer to PeiServices.\r
22\r
23 The function returns the pointer to PeiServices.\r
24 It will ASSERT() if the pointer to PeiServices is NULL.\r
25\r
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 **)(UINTN)AsmReadKr7 ();\r
38 ASSERT (PeiServices != NULL);\r
39 return PeiServices;\r
40}\r
41\r