MdeModulePkg: Add ResetSystemLib instances that call core services
authorMichael D Kinney <michael.d.kinney@intel.com>
Fri, 1 Sep 2017 08:12:21 +0000 (01:12 -0700)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 9 Feb 2018 07:29:58 +0000 (15:29 +0800)
commitce3cd892c82121b8dcb548c264c1cfc6abcad770
tree598ce2a1041762c8a1a3c3dc19caadbf5de2a3ae
parent4bf95a9f361edf1f5c88c497f0b9b32c655ea6f9
MdeModulePkg: Add ResetSystemLib instances that call core services

Add a PEI instance of ResetSystemLib that calls the ResetSystem2()
service in the PEI Services Table.

Add a DXE instance of ResetSystemLib that calls the ResetSystem()
service in the UEFI Runtime Services Table.

These 2 library instances should be the default ResetSystemLib
mapping for most PEIMs and DXE drivers so all reset system requests
go through the core service.

Only the implementation of the core servies should use the
platform specific instance of the ResetSystemLib that actually
performs the hardware actions to reset the platform.

Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c [new file with mode: 0644]
MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf [new file with mode: 0644]
MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.uni [new file with mode: 0644]
MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c [new file with mode: 0644]
MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.inf [new file with mode: 0644]
MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.uni [new file with mode: 0644]