diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2016-10-23 23:26:20 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2016-11-17 16:30:08 +0800 |
commit | 17abe97671eee6fa51cea729fc31c2ddad12628f (patch) | |
tree | da6e7c32f338fd6268f0ddaffa8c8690ae755aa6 | |
parent | 717fb60443fbaedfab9a37fd186361b3b9e1ecfe (diff) | |
download | edk2-17abe97671eee6fa51cea729fc31c2ddad12628f.tar.gz edk2-17abe97671eee6fa51cea729fc31c2ddad12628f.tar.bz2 edk2-17abe97671eee6fa51cea729fc31c2ddad12628f.zip |
QuarkPlatformPkg/dsc: enable Smm paging protection.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Kelly Steele <kelly.steele@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r-- | QuarkPlatformPkg/Quark.dsc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/QuarkPlatformPkg/Quark.dsc b/QuarkPlatformPkg/Quark.dsc index 0bd9120a7f..d36fd6e41c 100644 --- a/QuarkPlatformPkg/Quark.dsc +++ b/QuarkPlatformPkg/Quark.dsc @@ -942,3 +942,9 @@ [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
+
+# Force PE/COFF sections to be aligned at 4KB boundaries to support page level protection of DXE_SMM_DRIVER/SMM_CORE modules
+[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
+ MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
+ GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
+
|