audk/QuarkSocPkg
Michael Kinney 29f169d17a QuarkSocPkg/QncSmmDispatcher: Fix context passed to SMI handlers
https://bugzilla.tianocore.org/show_bug.cgi?id=136

1) Add CallbackContext field to the DATABASE_RECORD structure that
   is set to the RegisterContent value passed to QNCSmmCoreRegister().
   This is the content that must be passed to the SMI handler when
   its source is triggered.

2) Update usage of ChildContext field in the DATABASE_RECOD to use
   CopyMem() instead of structure assignments to avoid compiler
   use of memcpy() intrinsics

This issue was reproduced using the unit test at:

https://github.com/mdkinney/edk2/tree/Bug51/Reproduce

An ASSERT() is generated the first time the periodic SMI
handler is triggered.  After applying this patch, the
DEBUG() messages from the periodic SMI handler in this
unit test are generated.

Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Kelly Steele <kelly.steele@intel.com>
2016-10-07 14:56:29 -07:00
..
QuarkNorthCluster QuarkSocPkg/QncSmmDispatcher: Fix context passed to SMI handlers 2016-10-07 14:56:29 -07:00
QuarkSouthCluster QuarkSocPkg/SDControllerDxe: Add EFIAPI to SetHighSpeedMode 2016-05-13 11:34:41 -07:00
Contributions.txt QuarkSocPkg: Add new package for Quark SoC X1000 2015-12-15 19:22:23 +00:00
License.txt QuarkSocPkg: Add new package for Quark SoC X1000 2015-12-15 19:22:23 +00:00
QuarkSocPkg.dec QuarkSocPkg: Add new package for Quark SoC X1000 2015-12-15 19:22:23 +00:00
QuarkSocPkg.dsc QuarkSocPkg/QuarkSocPkg.dsc: Declare PciSegmentLib 2016-09-05 18:15:38 +08:00