summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Include/Ppi/EmuThunk.h
diff options
context:
space:
mode:
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>2022-12-06 13:40:52 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-12-08 10:44:20 +0000
commit22f73b6d2d3dfb70a13a184a2d0d26ed650e6ab9 (patch)
treef0bbf76eb133fbde1b07187f0d68f2bf71c64e87 /EmulatorPkg/Include/Ppi/EmuThunk.h
parent1c75bf3c21da79b1bc1d50cfc593b57f73f2c560 (diff)
downloadedk2-22f73b6d2d3dfb70a13a184a2d0d26ed650e6ab9.tar.gz
edk2-22f73b6d2d3dfb70a13a184a2d0d26ed650e6ab9.tar.bz2
edk2-22f73b6d2d3dfb70a13a184a2d0d26ed650e6ab9.zip
EmulatorPkg: Add persistent memory in EmuThunkPpi
The persistent memory is for PEIM to use, and won't lose during cold or warm reset. PcdPersistentMemorySize is only used by WinHost.c, other modules can check the persistent memory size using the field PersistentMemorySize. Cc: Andrew Fish <afish@apple.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'EmulatorPkg/Include/Ppi/EmuThunk.h')
-rw-r--r--EmulatorPkg/Include/Ppi/EmuThunk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/EmulatorPkg/Include/Ppi/EmuThunk.h b/EmulatorPkg/Include/Ppi/EmuThunk.h
index c0e2bc6b98..cf29cf824c 100644
--- a/EmulatorPkg/Include/Ppi/EmuThunk.h
+++ b/EmulatorPkg/Include/Ppi/EmuThunk.h
@@ -2,7 +2,7 @@
Emulator Thunk to abstract OS services from pure EFI code
Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
-
+ Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -107,6 +107,8 @@ typedef struct {
EMU_PEI_AUTOSCAN MemoryAutoScan;
EMU_PEI_FD_INFORMATION FirmwareDevices;
EMU_PEI_THUNK_INTERFACE Thunk;
+ UINTN PersistentMemorySize;
+ UINT8 PersistentMemory[0];
} EMU_THUNK_PPI;
extern EFI_GUID gEmuThunkPpiGuid;