From nobody Tue Feb 10 04:17:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39998+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39998+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557042761; cv=none; d=zoho.com; s=zohoarc; b=h98mCOzHq5hTd7QifegnbMhD4YgYxSgW5fm9P+u5lH1ZBKdsL8Gqvh1B5iUzwbQkBCoWCqLoAEtz/Mz8jOIfbp0O0V8sBt8KgSKxATMG+Whuyf3ZvDTjhtMQrEDfDDYhW0ugVZZrkOI0fSEfkhvgM1WQ6KUYc14LKva2xPdLMPA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557042761; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=baHwGFVfY6FaGIVetlQAKdxC8s5nLn5nOBbYXGgbpic=; b=odGQgq0eJqwbRvC1pNgifnhXpIsDw2xsHvzqSpcFscKMoA+8t/XqejP3+yHZk6lONt5axKh7qHiOkkb8NWGfaeD8sUhhwpBSh3wPc+Z1Z7qi0i6zrdYyoWRL+IsN2pYmI8nypeStRGamzVQGo5EeqhAa+ieEFjq2xhrF7L96/Bk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39998+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557042761795906.2738254877679; Sun, 5 May 2019 00:52:41 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Sun, 05 May 2019 00:52:40 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2019 00:52:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,433,1549958400"; d="scan'208";a="155041593" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by FMSMGA003.fm.intel.com with ESMTP; 05 May 2019 00:52:27 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew Subject: [edk2-devel] [PATCH 4/4] MdeModulePkg/ResetUtilityLib: Replace the reset data difinition Date: Sun, 5 May 2019 15:50:46 +0800 Message-Id: <20190505075046.14464-5-zhichao.gao@intel.com> In-Reply-To: <20190505075046.14464-1-zhichao.gao@intel.com> References: <20190505075046.14464-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557042761; bh=vnNi99oLuRg5ZO0t9nIfEV31H/BtvoZ3CtHWIwEBCXM=; h=Cc:Date:From:Reply-To:Subject:To; b=uJ/aMWkFCd8g4ALPpdOe7GN84rLL8jtdJEqYFFK253YoviV/Hg+V1RkgLUFtf6krt5X 5sTqETj9VBAliJZsI/aJde6FQRaAKwh7DUhY488kTgesoYCa4wT8E4kDDkj0Mi68B0qLR I2UC2tWGS8TlAI2JvwFoWBbsi4dvutkgV+Y= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1772 Replace the definition of 'RESET_UTILITY_GUID_SPECIFIC_RESET_DATA' with 'RESET_DATA_WITH_NULL_STRING'. Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- .../Library/ResetUtilityLib/ResetUtility.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c b/MdeModul= ePkg/Library/ResetUtilityLib/ResetUtility.c index 2b5af4b95a..c420e0e36a 100644 --- a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c +++ b/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c @@ -12,15 +12,7 @@ #include #include #include - -#pragma pack(1) -typedef struct { - CHAR16 NullTerminator; - GUID ResetSubtype; -} RESET_UTILITY_GUID_SPECIFIC_RESET_DATA; -#pragma pack() - -VERIFY_SIZE_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, 18); +#include =20 /** This is a shorthand helper function to reset with reset type and a subty= pe @@ -46,11 +38,11 @@ ResetSystemWithSubtype ( IN CONST GUID *ResetSubtype ) { - RESET_UTILITY_GUID_SPECIFIC_RESET_DATA ResetData; + RESET_DATA_WITH_NULL_STRING ResetData; =20 - ResetData.NullTerminator =3D CHAR_NULL; + ResetData.NullString =3D CHAR_NULL; CopyGuid ( - (GUID *)((UINT8 *)&ResetData + OFFSET_OF (RESET_UTILITY_GUID_SPECIFIC_= RESET_DATA, ResetSubtype)), + (GUID *)((UINT8 *)&ResetData + OFFSET_OF (RESET_DATA_WITH_NULL_STRING,= ResetGuid)), ResetSubtype ); =20 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39998): https://edk2.groups.io/g/devel/message/39998 Mute This Topic: https://groups.io/mt/31507361/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-