]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointer.c
Fixed comments to follow coding standard.
[mirror_edk2.git] / MdePkg / Library / PeiServicesTablePointerLibIdt / PeiServicesTablePointer.c
1 /** @file
2 PEI Services Table Pointer Library for IA-32 and X64.
3
4 Copyright (c) 2006 - 2007, Intel Corporation.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "InternalPeiServicesTablePointer.h"
16
17
18 /**
19
20 The function returns the pointer to PeiServicee following
21 PI1.0.
22
23 For IA32, the four-bytes field immediately prior to new IDT
24 base addres is used to save the EFI_PEI_SERVICES**.
25 For x64, the eight-bytes field immediately prior to new IDT
26 base addres is used to save the EFI_PEI_SERVICES**
27 @retval The pointer to PeiServices.
28
29 **/
30 EFI_PEI_SERVICES **
31 EFIAPI
32 GetPeiServicesTablePointer (
33 VOID
34 )
35 {
36 EFI_PEI_SERVICES **PeiServices;
37
38 PeiServices = (EFI_PEI_SERVICES **) AsmPeiSevicesTablePointer ();
39 ASSERT (PeiServices != NULL);
40 return PeiServices;
41 }
42