]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg PiSmmCore: Only install EndOfS3Resume during S3 resume
authorStar Zeng <star.zeng@intel.com>
Fri, 8 Dec 2017 10:44:40 +0000 (18:44 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 12 Dec 2017 10:30:06 +0000 (18:30 +0800)
commit7b9b55b2ef7be13608605dc58a54b9ca04be4e40
tree9ab51c1731cf7d882823cc22cb57174541de9281
parenta85e7127bf40e24401f841814e0aac850038e4d2
MdeModulePkg PiSmmCore: Only install EndOfS3Resume during S3 resume

Otherwise, it may be triggered wrongly by other code in OS.

This patch is to use S3 entry callback to determine if it will be
during S3 resume, and check it in SmmReadyToBootHandler().

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf