MdeModulePkg: Add ResetSystemLib instances that call core services
authorMichael D Kinney <>
Fri, 1 Sep 2017 08:12:21 +0000 (01:12 -0700)
committerRuiyu Ni <>
Fri, 9 Feb 2018 07:29:58 +0000 (15:29 +0800)
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 <>
Reviewed-by: Ruiyu Ni <>
Reviewed-by: Star Zeng <>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <>
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]