Hi,

I'm tracing the execution of PrePiLib:LoadDxeFromFv() and have a few questions.

After getting VolumeHandle from the Hob in FfsFindNextVolume(), it is casted to
`EFI_FIRMWARE_VOLUME_HEADER*` in FindFileEx() [1]. How does this work?
I could not find `EFI_PEI_FV_HANDLE` being populated anywhere with fields in a
`EFI_FIRMWARE_VOLUME_HEADER*`, and so for me, the FvLength [2] gets set
to 0.

Also, the call to PlatformPeim() at [3] appends a single PCD-specified
FV to the Hob list.
So, I figure, this approach would not work if there are multiple
non-nested FVs placed
into an FD with DxeCore being in a separate FV from PrePi?


[1] 
https://github.com/tianocore/edk2/blob/master/EmbeddedPkg/Library/PrePiLib/FwVol.c#L181
[2] 
https://github.com/tianocore/edk2/blob/master/EmbeddedPkg/Library/PrePiLib/FwVol.c#L184
[3] 
https://github.com/tianocore/edk2/blob/master/ArmPlatformPkg/PrePi/PrePi.c#L175

Thanks,
Varad

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to