public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* SMM PciExpressLib Instance
@ 2016-09-14 19:21 Felix Poludov
  2016-09-14 19:28 ` Felix Poludov
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Poludov @ 2016-09-14 19:21 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Dear MdePkg maintainer,

MdePkg does not provide a specialized instance of PciExpressLib for SMM Drivers.
It provides Base instance that is typically used by SMM Drivers.
However, BasePciExpressLib calls PcdGet64 (PcdPciExpressBaseAddress) on every PCI-E access
and PcdPciExpressBaseAddress is declared in MdePkg.dec as a potentially dynamic token.
SMM Drivers cannot use BasePciExpressLib when PcdPciExpressBaseAddress is dynamic.
This patch adds SMM instance of PciExpressLib based on BasePciExpressLib.
The only difference from BasePciExpressLib is a constructor that caches PCD value into a local variable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Felix Polyudov <felixp@ami.com<mailto:felixp@ami.com>>

Thanks
Felix

Please consider the environment before printing this email.

The information contained in this message may be confidential and proprietary to American Megatrends, Inc.  This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited.  Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


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

end of thread, other threads:[~2016-09-20 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 19:21 SMM PciExpressLib Instance Felix Poludov
2016-09-14 19:28 ` Felix Poludov
2016-09-15  2:33   ` Kinney, Michael D
2016-09-15 12:54     ` Felix Poludov
2016-09-20 14:02       ` Gao, Liming

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