summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-12-08 18:44:40 +0800
committerStar Zeng <star.zeng@intel.com>2017-12-12 18:30:06 +0800
commit7b9b55b2ef7be13608605dc58a54b9ca04be4e40 (patch)
tree9ab51c1731cf7d882823cc22cb57174541de9281 /MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
parenta85e7127bf40e24401f841814e0aac850038e4d2 (diff)
downloadedk2-7b9b55b2ef7be13608605dc58a54b9ca04be4e40.tar.gz
edk2-7b9b55b2ef7be13608605dc58a54b9ca04be4e40.tar.bz2
edk2-7b9b55b2ef7be13608605dc58a54b9ca04be4e40.zip
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>
Diffstat (limited to 'MdeModulePkg/Core/PiSmmCore/PiSmmCore.h')
-rw-r--r--MdeModulePkg/Core/PiSmmCore/PiSmmCore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
index 2729a434d8..8c10d833e2 100644
--- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
+++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
@@ -33,6 +33,7 @@
#include <Protocol/SmmLegacyBoot.h>
#include <Protocol/SmmReadyToBoot.h>
#include <Protocol/SmmMemoryAttribute.h>
+#include <Protocol/SmmSxDispatch2.h>
#include <Guid/Apriori.h>
#include <Guid/EventGroup.h>