]>
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 | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __EMU_MAGIC_PAGE_LIB_H__\r | |
18 | #define __EMU_MAGIC_PAGE_LIB_H__\r | |
19 | \r | |
20 | #include <PiPei.h>\r | |
21 | #include <Library/PcdLib.h>\r | |
22 | #include <Protocol/EmuThunk.h>\r | |
23 | \r | |
24 | typedef struct {\r | |
25 | // Used by PEI Core and PEIMs to store the PEI Services pointer.\r | |
26 | // Privilege issues prevent using the PI mechanism in the emulator.\r | |
27 | CONST EFI_PEI_SERVICES **PeiServicesTablePointer;\r | |
28 | \r | |
29 | // Used by SecPeiServicesLib\r | |
30 | EFI_PEI_PPI_DESCRIPTOR *PpiList;\r | |
31 | \r | |
32 | // Needed by PEI PEI PeCoffLoaderExtraActionLib\r | |
33 | EMU_THUNK_PROTOCOL *Thunk;\r | |
34 | } EMU_MAGIC_PAGE_LAYOUT;\r | |
35 | \r | |
36 | #define EMU_MAGIC_PAGE() ((EMU_MAGIC_PAGE_LAYOUT *)((UINTN)PcdGet64 (PcdPeiServicesTablePage)))\r | |
37 | \r | |
38 | #endif\r |