On 01/30/20 12:03, [email protected] wrote:
> I need to use some code from PEIM driver in DXE phase. This code is
> using the SYSHOST structure and I think it not easy to restore it
> from HOBs becuase there are a lot of information. So I thought it
> easy to save the structure completely in the memory.

In the PEIM, assuming your code runs after permanent RAM has been
discovered, you can allocate memory for the SYSHOST structure with the
AllocatePages() PEI service. Stash the allocation address in a vendor
GUID HOB. In the DXE phase, look up the HOB by GUID.

Thanks
Laszlo


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#53575): https://edk2.groups.io/g/devel/message/53575
Mute This Topic: https://groups.io/mt/70267536/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to