Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: ed9db1b91ceba7d3a24743d4d9314c6fbe11c4b3 https://github.com/tianocore/edk2/commit/ed9db1b91ceba7d3a24743d4d9314c6fbe11c4b3 Author: Chasel Chiu <chasel.c...@intel.com> Date: 2019-10-01 (Tue, 01 Oct 2019)
Changed paths: M MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c M MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf Log Message: ----------- MdeModulePkg: Enable/Disable S3BootScript dynamically. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2212 In binary model the same binary may have to support both S3 enabled and disabled scenarios, however not all DXE drivers linking PiDxeS3BootScriptLib can return error to invoke library DESTRUCTOR for releasing resource. To support this usage model below PCD is used to skip S3BootScript functions when PCD set to FALSE: gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable Test: Verified on internal platform and S3BootScript functions can be skipped by PCD during boot time. Cc: Hao A Wu <hao.a...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Chasel Chiu <chasel.c...@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desim...@intel.com> Reviewed-by: Eric Dong <eric.d...@intel.com> Acked-by: Laszlo Ersek <ler...@redhat.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits