public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Hao Wu <hao.a.wu@intel.com>
To: edk2-devel@lists.01.org
Cc: Hao Wu <hao.a.wu@intel.com>
Subject: [PATCH 0/3] Add APIs IsZeroBuffer and IsZeroGuid in BaseMemoryLib
Date: Thu,  4 Aug 2016 09:24:27 +0800	[thread overview]
Message-ID: <1470273870-14376-1-git-send-email-hao.a.wu@intel.com> (raw)

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



             reply	other threads:[~2016-08-04  1:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-04  1:24 Hao Wu [this message]
2016-08-04  1:24 ` [PATCH 1/3] MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid() Hao Wu
2016-08-04  1:24 ` [PATCH 2/3] MdePkg BaseMemoryLib: Add implementation of API IsZeroBuffer() Hao Wu
2016-08-04  1:24 ` [PATCH 3/3] SecurityPkg Tcg2: Remove internal implementation of IsZeroBuffer() Hao Wu
2016-08-04 13:28   ` Zhang, Chao B
2016-08-04  8:07 ` [PATCH 0/3] Add APIs IsZeroBuffer and IsZeroGuid in BaseMemoryLib Laszlo Ersek
2016-08-04  8:44   ` Wu, Hao A

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470273870-14376-1-git-send-email-hao.a.wu@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox