public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* visibility pf PcdSet
@ 2017-03-20 16:06 Michael Zimmermann
  2017-03-20 16:17 ` Laszlo Ersek
  2017-03-20 18:19 ` Ard Biesheuvel
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Zimmermann @ 2017-03-20 16:06 UTC (permalink / raw)
  To: edk2-devel@lists.01.org, Laszlo Ersek, Ard Biesheuvel,
	Leif Lindholm, Yonghong Zhu, Liming Gao

Do I understand correctly, that a PcdSet on a 'PcdsPatchableInModule'
is only visible to the current module?(SEC, driver, application, ...)
Because I've tested this and a PcdSet on
gArmTokenSpaceGuid.PcdSystemMemoryBase inisde PrePi is not visible
inside a DXE_DRIVER - which means that for everyone else the value is
still 0x0.

If this is the case and I don't have some platform bug, then there is
probably a bug in ArmVirtPkg's HighMemDxe where this Pcd is used in a
DXE_DRIVER:
https://github.com/tianocore/edk2/blob/76874be3d411bf8daac051718e20932e0bf97d70/ArmVirtPkg/HighMemDxe/HighMemDxe.c#L70
It doesn't cause anything bad but it would show 'Failed to add System
RAM @ START - END (Access Denied)' after calling AddMemorySpace for
memory which has already been registered.

Thanks
Michael


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-21  7:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 16:06 visibility pf PcdSet Michael Zimmermann
2017-03-20 16:17 ` Laszlo Ersek
2017-03-20 18:19 ` Ard Biesheuvel
2017-03-20 18:37   ` Michael Zimmermann
2017-03-21  2:23   ` Gao, Liming
2017-03-21  7:09     ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox