]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Library/PeiServicesTablePointerLib.h
MdePkg UefiLib: Make the event empty function public
[mirror_edk2.git] / MdePkg / Include / Library / PeiServicesTablePointerLib.h
... / ...
CommitLineData
1/** @file\r
2 Provides a service to retrieve a pointer to the PEI Services Table.\r
3\r
4Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __PEI_SERVICES_TABLE_POINTER_LIB_H__\r
16#define __PEI_SERVICES_TABLE_POINTER_LIB_H__\r
17\r
18/**\r
19 Retrieves the cached value of the PEI Services Table pointer.\r
20\r
21 Returns the cached value of the PEI Services Table pointer in a CPU specific manner \r
22 as specified in the CPU binding section of the Platform Initialization Pre-EFI \r
23 Initialization Core Interface Specification.\r
24 \r
25 If the cached PEI Services Table pointer is NULL, then ASSERT().\r
26\r
27 @return The pointer to PeiServices.\r
28\r
29**/\r
30CONST EFI_PEI_SERVICES **\r
31EFIAPI\r
32GetPeiServicesTablePointer (\r
33 VOID\r
34 );\r
35\r
36/**\r
37 Caches a pointer PEI Services Table. \r
38 \r
39 Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer \r
40 in a CPU specific manner as specified in the CPU binding section of the Platform Initialization \r
41 Pre-EFI Initialization Core Interface Specification. \r
42 \r
43 If PeiServicesTablePointer is NULL, then ASSERT().\r
44 \r
45 @param PeiServicesTablePointer The address of PeiServices pointer.\r
46**/\r
47VOID\r
48EFIAPI\r
49SetPeiServicesTablePointer (\r
50 IN CONST EFI_PEI_SERVICES ** PeiServicesTablePointer\r
51 );\r
52\r
53/**\r
54 Perform CPU specific actions required to migrate the PEI Services Table \r
55 pointer from temporary RAM to permanent RAM.\r
56\r
57 For IA32 CPUs, the PEI Services Table pointer is stored in the 4 bytes \r
58 immediately preceding the Interrupt Descriptor Table (IDT) in memory.\r
59 For X64 CPUs, the PEI Services Table pointer is stored in the 8 bytes \r
60 immediately preceding the Interrupt Descriptor Table (IDT) in memory.\r
61 For Itanium and ARM CPUs, a the PEI Services Table Pointer is stored in\r
62 a dedicated CPU register. This means that there is no memory storage \r
63 associated with storing the PEI Services Table pointer, so no additional \r
64 migration actions are required for Itanium or ARM CPUs.\r
65\r
66**/\r
67VOID\r
68EFIAPI\r
69MigratePeiServicesTablePointer (\r
70 VOID\r
71 );\r
72\r
73#endif\r
74\r