audk/MdeModulePkg/Core/PiSmmCore
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
..
Dependency.c 1) Change location of DEBUG() macro that prints the name of the FFS file being evaluated by the DXE Dispatcher to eliminate a duplicate print. 2010-12-06 21:55:14 +00:00
Dispatcher.c PiSmmCore dispatcher should not use one Index for three loops. 2015-06-06 23:49:39 +00:00
Handle.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
InstallConfigurationTable.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
Locate.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
Notify.c MdeModulePkg/SmmCore: SMM register protocol notify function clarify 2015-05-07 02:29:52 +00:00
Page.c MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. 2014-11-12 03:27:48 +00:00
PiSmmCore.c MdeModulePkg: PiSmmCore: Remove confusing CopyMem() of SMM_ENTRY_CONTEXT 2015-11-03 02:06:57 +00:00
PiSmmCore.h MdeModulePkg PiSmmCore: Introduce SMM Exit Boot Services and Legacy Boot. 2015-06-18 09:26:41 +00:00
PiSmmCore.inf MdeModulePkg PiSmmCore: Introduce SMM Exit Boot Services and Legacy Boot. 2015-06-18 09:26:41 +00:00
PiSmmCore.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PiSmmCoreExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
PiSmmCorePrivateData.h MdeModulePkg PiSmmCore: Remove a hidden assumption of SMRAM reservation 2015-07-26 07:38:12 +00:00
PiSmmIpl.c MdeModulePkg PiSmmIpl: Use AllocateZeroPool() for FullSmramRanges 2015-07-28 02:07:06 +00:00
PiSmmIpl.inf MdeModulePkg PiSmmCore: Introduce SMM Exit Boot Services and Legacy Boot. 2015-06-18 09:26:41 +00:00
PiSmmIpl.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PiSmmIplExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
Pool.c MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. 2014-11-12 03:27:48 +00:00
Smi.c Update SmiManager() comments and implementation to follow the new rule clarified by PI 1.2.1 errata A. 2013-02-20 03:38:10 +00:00
SmramProfileRecord.c MdeModulePkg PiSmmCore: Free FullSmramRanges at error condition. 2015-06-09 09:41:50 +00:00