audk/MdeModulePkg
Michael Kinney 229fd9e7aa MdeModulePkg: PiSmmCore: Remove confusing CopyMem() of SMM_ENTRY_CONTEXT
A subset of fields in the EFI_SMM_SYSTEM_TABLE2 structure are identical
to the fields in the SMM_ENTRY_CONTEXT structure.  CopyMem() is used to
transfer the contents of the SMM_ENTRY_CONTEXT structure into the
EFI_SMM_SYSTEM_TABLE2.  This is confusing because SMM_ENTRY_CONTEXT is
not used in the declaration of EFI_SMM_SYSTEM_TABLE2 and field contents
are transferred without any reference to individual field names (e.g.
CurrentlyExecutingCpu).  In order to make the code easier to maintain
and understand, the CopyMem() is replaced with statements that transfer
each field of SMM_ENTRY_CONTEXT into EFI_SMM_SYSTEM_TABLE2.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Link: http://article.gmane.org/gmane.comp.bios.edk2.devel/3567

Cc: Feng Tian <feng.tian@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18716 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-03 02:06:57 +00:00
..
Application MdeModulePkg: Update UiApp to not display itself 2015-10-23 07:28:18 +00:00
Bus MdeModulePkg: Do not dump NULL padding resource descriptor 2015-10-29 03:26:00 +00:00
Core MdeModulePkg: PiSmmCore: Remove confusing CopyMem() of SMM_ENTRY_CONTEXT 2015-11-03 02:06:57 +00:00
Include MdeModulePkg:Add new API HiiGetFormSetFromHiiHandle into UefiHiiLib 2015-10-27 10:19:29 +00:00
Library MdeModulePkg: Add DEBUG statement when reaching max perf log entries 2015-11-02 02:38:24 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById 2015-11-02 01:42:51 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt
MdeModulePkg.dec MdeModulePkg: PcdSetNxForStack: enable dynamism 2015-09-15 08:34:57 +00:00
MdeModulePkg.dsc Move Smbios measurement from TCG driver to Smbios driver. 2015-10-27 04:46:50 +00:00
MdeModulePkg.uni MdeModulePkg PiDxeS3BootScriptLib: Remove a hidden assumption. 2015-09-15 07:49:12 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00