From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by ml01.01.org (Postfix) with ESMTP id 60B441A1DED for ; Wed, 10 Aug 2016 19:22:34 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 10 Aug 2016 19:22:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,503,1464678000"; d="scan'208";a="153975877" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 10 Aug 2016 19:22:34 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 19:22:33 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 19:22:33 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.8]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.150]) with mapi id 14.03.0248.002; Thu, 11 Aug 2016 10:22:31 +0800 From: "Wei, David" To: "Ni, Ruiyu" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" Thread-Topic: [PATCH 08/11] Vlv2TbltDevicePkg/ResetSystemLib: Implement ResetPlatformSpecific Thread-Index: AQHR8svt2mvZrfiETUCjbWGb0xBnyqBDCGtQ Date: Thu, 11 Aug 2016 02:22:30 +0000 Message-ID: <89954A0B46707A448411A627AD4EEE3437D8487E@SHSMSX101.ccr.corp.intel.com> References: <20160810055611.266232-1-ruiyu.ni@intel.com> <20160810055611.266232-9-ruiyu.ni@intel.com> In-Reply-To: <20160810055611.266232-9-ruiyu.ni@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGZmOGRkMzAtNmY2Zi00ZTE4LWE4NWQtYzFjZTY3NjJhODJjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjVoS09wYnI3d3dmWFJtSmw1a2JwMDRpQmNnQ1FOcEViY09sRjBqQ3JpOEk9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 08/11] Vlv2TbltDevicePkg/ResetSystemLib: Implement ResetPlatformSpecific X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 02:22:34 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: David Wei Thanks, David Wei =20 -----Original Message----- From: Ni, Ruiyu=20 Sent: Wednesday, August 10, 2016 1:56 PM To: edk2-devel@lists.01.org Cc: Wei, David Subject: [PATCH 08/11] Vlv2TbltDevicePkg/ResetSystemLib: Implement ResetPla= tformSpecific Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: David Wei --- .../Library/ResetSystemLib/ResetSystemLib.c | 23 ++++++++++++++++++= ++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Vlv2TbltDevicePkg/Library/ResetSystemLib/ResetSystemLib.c b/Vl= v2TbltDevicePkg/Library/ResetSystemLib/ResetSystemLib.c index 1a6da83..77f1b8b 100644 --- a/Vlv2TbltDevicePkg/Library/ResetSystemLib/ResetSystemLib.c +++ b/Vlv2TbltDevicePkg/Library/ResetSystemLib/ResetSystemLib.c @@ -1,7 +1,6 @@ /** @file =20 -Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
- = =20 + Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made availa= ble under the terms and conditions of the BSD License that accompanies this distri= bution. =20 The full text of the license may be found at = =20 @@ -176,3 +175,23 @@ EnterS3WithImmediateWake ( ASSERT (FALSE); } =20 +/** + 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 i= nto ResetData. + If the platform does not recognize the EFI_GUID in ResetData the platfor= m must pick a + supported reset type to perform.The platform may optionally log the para= meters 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 str= ing, followed + by the EFI_GUID. +**/ +VOID +EFIAPI +ResetPlatformSpecific ( + IN UINTN DataSize, + IN VOID *ResetData + ) +{ + ResetCold (); +} --=20 2.9.0.windows.1