From: Ruiyu Ni Date: Wed, 10 Aug 2016 05:25:08 +0000 (+0800) Subject: CorebootPayloadPkg/ResetSystemLib: Implement ResetPlatformSpecific X-Git-Tag: edk2-stable201903~5898 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=adb6c39a5f2eb3d1504240bf05fe526e367cbdc4;hp=eeef069d6cd233d043f92fe9d4027c758edf8798;p=mirror_edk2.git CorebootPayloadPkg/ResetSystemLib: Implement ResetPlatformSpecific Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Maurice Ma Cc: Prince Agyeman --- diff --git a/CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.c b/CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.c index 55f5609629..b7d6f385fe 100644 --- a/CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.c +++ b/CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.c @@ -1,7 +1,7 @@ /** @file Reset System Library functions for coreboot - Copyright (c) 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -161,3 +161,24 @@ EnterS3WithImmediateWake ( AcpiPmControl (5); ASSERT (FALSE); } + +/** + This function causes a systemwide reset. The exact type of the reset is + defined by the EFI_GUID that follows the Null-terminated Unicode string passed + into ResetData. If the platform does not recognize the EFI_GUID in ResetData + the platform must pick a supported reset type to perform.The platform may + optionally log the parameters from any non-normal reset that occurs. + + @param[in] DataSize The size, in bytes, of ResetData. + @param[in] ResetData The data buffer starts with a Null-terminated string, + followed by the EFI_GUID. +**/ +VOID +EFIAPI +ResetPlatformSpecific ( + IN UINTN DataSize, + IN VOID *ResetData + ) +{ + ResetCold (); +}