]>
git.proxmox.com Git - mirror_edk2.git/blob - EmulatorPkg/Include/Library/EmuMagicPageLib.h
2 The PCD, gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage, points to a magic page
3 of memory that is like SRAM on an embedded system. This file defines what goes
4 where in the magic page.
6 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __EMU_MAGIC_PAGE_LIB_H__
12 #define __EMU_MAGIC_PAGE_LIB_H__
15 #include <Library/PcdLib.h>
16 #include <Protocol/EmuThunk.h>
19 // Used by PEI Core and PEIMs to store the PEI Services pointer.
20 // Privilege issues prevent using the PI mechanism in the emulator.
21 CONST EFI_PEI_SERVICES
**PeiServicesTablePointer
;
23 // Used by SecPeiServicesLib
24 EFI_PEI_PPI_DESCRIPTOR
*PpiList
;
26 // Needed by PEI PEI PeCoffLoaderExtraActionLib
27 EMU_THUNK_PROTOCOL
*Thunk
;
28 } EMU_MAGIC_PAGE_LAYOUT
;
30 #define EMU_MAGIC_PAGE() ((EMU_MAGIC_PAGE_LAYOUT *)((UINTN)PcdGet64 (PcdPeiServicesTablePage)))