diff options
author | Ni, Ray <ray.ni@intel.com> | 2022-11-12 12:00:41 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-05 05:35:41 +0000 |
commit | a121165e35b50a8bfc1253c9be156c1c123ff688 (patch) | |
tree | 8b255aef071ed837d2b4a7a821aeac52d86366f4 /UefiPayloadPkg | |
parent | d2842bb6ec3e7fa691318c31e71e88b9a9eca545 (diff) | |
download | edk2-a121165e35b50a8bfc1253c9be156c1c123ff688.zip edk2-a121165e35b50a8bfc1253c9be156c1c123ff688.tar.gz edk2-a121165e35b50a8bfc1253c9be156c1c123ff688.tar.bz2 |
EmulatorPkg/WinHost: XIP for SEC and PEI_CORE
In EmulatorPkg/Win, SEC and PEI_CORE are loaded to memory allocated
through VirtualAlloc. Though the corresponding DLL files are loaded
and the entry points in DLL files are executed. The loading to memory
allocated through VirtualAlloc is for the case when the DLL files can
not be loaded.
Actually some PEIMs like PcdPeim which are loaded before
"physical" RAM is discovered, they are executing in the original
location (FV) like XIP module in real platform.
The SEC and PEI_CORE can follow the same mechanism.
So, the VirtualAlloc call is removed.
This is to prepare the "reset" support to avoid additional OS memory
consumption when reset happens.
Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Andrew Fish <afish@apple.com
Diffstat (limited to 'UefiPayloadPkg')
0 files changed, 0 insertions, 0 deletions