On Wed, Apr 17, 2024 at 10:53:21AM +0800, Chao Li wrote: > Hi Gerd, > > Part 2 has been be merged, I'm separatingĀ this Lib into two serve the PEI > stage and DXE stage. > > Currently, This DXE library uses three global variables, and when I simulate > the no-mmio version: MmioLib.c + Dxe.c + Pei.c, I can abstract some helper > functions as the public functions in Mmio version. > > Do you mind if I replace these three vaiables with three dynamically typed > PCDs? If so, the PEI and DXE stage libraries can usingĀ some of the same > APIs.
What is your idea? Let PEI discover fw_cfg, store results in PCDs, and DXE will read the PCDs instead of using FdtClientProtocol to find the fw_cfg? Note that risc-v and arm don't need access to fw_cfg in PEI, so this approach would not work for them. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117896): https://edk2.groups.io/g/devel/message/117896 Mute This Topic: https://groups.io/mt/104859897/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-