updated to use the term “temporary memory” but not CAR
[edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / X64 / PeiServicePointer.c
blob30c577bf9d4958d80d94c0e6289765a5eedc33d2
1 /*++
3 Copyright 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 Module Name:
15 PeiServicePointer.c
17 Abstract:
19 --*/
21 #include "Tiano.h"
22 #include "PeiApi.h"
25 #if (PI_SPECIFICATION_VERSION >= 0x00010000)
27 VOID
28 SetPeiServicesTablePointer (
29 IN EFI_PEI_SERVICES **PeiServices
31 /*++
33 Routine Description:
35 Save PeiService pointer so that it can be retrieved anywhere.
37 Arguments:
39 PeiServices - The direct pointer to PeiServiceTable.
40 PhyscialAddress - The physcial address of variable PeiServices.
42 Returns:
43 NONE
45 --*/
47 return;
50 EFI_PEI_SERVICES **
51 GetPeiServicesTablePointer (
52 VOID
54 /*++
56 Routine Description:
58 Get PeiService pointer.
60 Arguments:
62 NONE.
64 Returns:
65 The direct pointer to PeiServiceTable.
67 --*/
69 return NULL;
73 VOID
74 MigrateIdtTable (
75 IN EFI_PEI_SERVICES **PeiServices
77 /*++
79 Routine Description:
81 Migrate IDT from temporary memory to real memory where preceded with 4 bytes for
82 storing PeiService pointer.
84 Arguments:
86 PeiServices - The direct pointer to PeiServiceTable.
88 Returns:
90 NONE.
92 --*/
94 return;
97 #endif