]>
Commit | Line | Data |
---|---|---|
79e4f2a5 RN |
1 | /*++ @file\r |
2 | The PCD, gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage, points to a magic page\r | |
3 | of memory that is like SRAM on an embedded system. This file defines what goes\r | |
4 | where in the magic page.\r | |
5 | \r | |
6 | Copyright (c) 2011, Apple Inc. All rights reserved.<BR>\r | |
e3ba31da | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
79e4f2a5 RN |
8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef __EMU_MAGIC_PAGE_LIB_H__\r | |
12 | #define __EMU_MAGIC_PAGE_LIB_H__\r | |
13 | \r | |
14 | #include <PiPei.h>\r | |
15 | #include <Library/PcdLib.h>\r | |
16 | #include <Protocol/EmuThunk.h>\r | |
17 | \r | |
18 | typedef struct {\r | |
19 | // Used by PEI Core and PEIMs to store the PEI Services pointer.\r | |
20 | // Privilege issues prevent using the PI mechanism in the emulator.\r | |
21 | CONST EFI_PEI_SERVICES **PeiServicesTablePointer;\r | |
22 | \r | |
23 | // Used by SecPeiServicesLib\r | |
24 | EFI_PEI_PPI_DESCRIPTOR *PpiList;\r | |
25 | \r | |
26 | // Needed by PEI PEI PeCoffLoaderExtraActionLib\r | |
27 | EMU_THUNK_PROTOCOL *Thunk;\r | |
28 | } EMU_MAGIC_PAGE_LAYOUT;\r | |
29 | \r | |
30 | #define EMU_MAGIC_PAGE() ((EMU_MAGIC_PAGE_LAYOUT *)((UINTN)PcdGet64 (PcdPeiServicesTablePage)))\r | |
31 | \r | |
32 | #endif\r |