]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Library/PeiServicesTablePointerLib.h
Fix missing include header file and fix typo in comment.
[mirror_edk2.git] / MdePkg / Include / Library / PeiServicesTablePointerLib.h
1 /** @file
2 PEI Services Table Pointer Library services
3
4 Copyright (c) 2006, Intel Corporation
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 #ifndef __PEI_SERVICES_TABLE_POINTER_LIB_H__
16 #define __PEI_SERVICES_TABLE_POINTER_LIB_H__
17
18 /**
19 The function returns the pointer to PEI services.
20
21 The function returns the pointer to PEI services.
22 It will ASSERT() if the pointer to PEI services is NULL.
23
24 @retval The pointer to PeiServices.
25
26 **/
27 EFI_PEI_SERVICES **
28 EFIAPI
29 GetPeiServicesTablePointer (
30 VOID
31 );
32
33 /**
34 The function set the pointer of PEI services immediately preceding the IDT table
35 according to PI specification.
36
37 @param PeiServicesTablePointer The address of PeiServices pointer.
38 **/
39 VOID
40 EFIAPI
41 SetPeiServicesTablePointer (
42 EFI_PEI_SERVICES ** PeiServicesTablePointer
43 );
44
45 /**
46 After memory initialization in PEI phase, the IDT table in temporary memory should
47 be migrated to memory, and the address of PeiServicesPointer also need to be updated
48 immediately preceding the new IDT table.
49
50 @param PeiServices The address of PeiServices pointer.
51 **/
52 VOID
53 EFIAPI
54 MigrateIdtTable (
55 IN EFI_PEI_SERVICES **PeiServices
56 );
57
58 #endif
59