From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by ml01.01.org (Postfix) with ESMTP id BC5021A1DCE for ; Wed, 3 Aug 2016 18:24:34 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 03 Aug 2016 18:24:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,468,1464678000"; d="scan'208";a="743902896" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.34]) by FMSMGA003.fm.intel.com with ESMTP; 03 Aug 2016 18:24:33 -0700 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu Date: Thu, 4 Aug 2016 09:24:27 +0800 Message-Id: <1470273870-14376-1-git-send-email-hao.a.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.0 Subject: [PATCH 0/3] Add APIs IsZeroBuffer and IsZeroGuid in BaseMemoryLib 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, 04 Aug 2016 01:24:34 -0000 The patch series will add two APIs in BaseMemoryLib: 1. IsZeroBuffer() The API is used to check if the contents of a buffer are all zeros. 2. IsZeroGuid() The API is used to check if the given GUID is a zero GUID. In order to resolve build issues in SecurityPkg, the series will also remove the internal implementation of IsZeroBuffer() in modules within SecurityPkg\Tcg and use the one in BaseMemoryLib instead. Hao Wu (3): MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid() MdePkg BaseMemoryLib: Add implementation of API IsZeroBuffer() SecurityPkg Tcg2: Remove internal implementation of IsZeroBuffer() MdePkg/Include/Library/BaseMemoryLib.h | 43 ++++++++++++++ MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf | 1 + MdePkg/Library/BaseMemoryLib/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLib/MemLibGuid.c | 31 ++++++++++- .../Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf | 1 + MdePkg/Library/BaseMemoryLibMmx/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c | 31 ++++++++++- .../BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf | 2 + MdePkg/Library/BaseMemoryLibOptDxe/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLibOptDxe/MemLibGuid.c | 31 ++++++++++- .../BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf | 2 + MdePkg/Library/BaseMemoryLibOptPei/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLibOptPei/MemLibGuid.c | 31 ++++++++++- .../BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf | 1 + MdePkg/Library/BaseMemoryLibRepStr/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c | 31 ++++++++++- .../BaseMemoryLibSse2/BaseMemoryLibSse2.inf | 1 + MdePkg/Library/BaseMemoryLibSse2/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/BaseMemoryLibSse2/MemLibGuid.c | 31 ++++++++++- MdePkg/Library/PeiMemoryLib/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/PeiMemoryLib/MemLibGuid.c | 31 ++++++++++- MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf | 1 + MdePkg/Library/UefiMemoryLib/IsZeroBuffer.c | 65 ++++++++++++++++++++++ MdePkg/Library/UefiMemoryLib/MemLibGuid.c | 31 ++++++++++- MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf | 1 + SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 27 --------- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 27 --------- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 27 --------- 28 files changed, 813 insertions(+), 89 deletions(-) create mode 100644 MdePkg/Library/BaseMemoryLib/IsZeroBuffer.c create mode 100644 MdePkg/Library/BaseMemoryLibMmx/IsZeroBuffer.c create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/IsZeroBuffer.c create mode 100644 MdePkg/Library/BaseMemoryLibOptPei/IsZeroBuffer.c create mode 100644 MdePkg/Library/BaseMemoryLibRepStr/IsZeroBuffer.c create mode 100644 MdePkg/Library/BaseMemoryLibSse2/IsZeroBuffer.c create mode 100644 MdePkg/Library/PeiMemoryLib/IsZeroBuffer.c create mode 100644 MdePkg/Library/UefiMemoryLib/IsZeroBuffer.c -- 1.9.5.msysgit.0