From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org, leif.lindholm@linaro.org
Cc: liming.gao@intel.com, ryan.harkin@linaro.org,
Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH v4 0/3] MdePkg: add ARM/AARCH64 support to BaseMemoryLib
Date: Wed, 7 Sep 2016 15:52:45 +0100 [thread overview]
Message-ID: <1473259968-7221-1-git-send-email-ard.biesheuvel@linaro.org> (raw)
This adds ARM and AARCH64 support to both BaseMemoryLib (generic C) and
BaseMemoryLibOptDxe (accelerated). The former can be used anywhere, the
latter only in places where the caches are guaranteed to be on, not only
due to the unaligned accesses but also due to the fact that it uses
DC ZVA instructions for clearing memory (AArch64 only).
Changes since v3:
- added Liming's R-b
- updated SetMem() to avoid unaligned strd (store pair) instructions, which
require 32-bit alignment even in cases where ordinary loads and stores do
tolerate unaligned accesses (#2)
- fix Clang issue in NEON dialect (#3)
Branch can be found here
https://git.linaro.org/people/ard.biesheuvel/uefi-next.git/shortlog/refs/heads/arm64-basememorylib-v4
Changes since v2:
- avoid open coded 64-bit shift (#1)
- tweak SetMem implementation (#2)
Ard Biesheuvel (3):
MdePkg/BaseMemoryLib: widen aligned accesses to 32 or 64 bits
MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines
MdePkg/BaseMemoryLibOptDxe: add accelerated AARCH64 routines
MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf | 2 +-
MdePkg/Library/BaseMemoryLib/CopyMem.c | 112 +++++++-
MdePkg/Library/BaseMemoryLib/SetMem.c | 40 ++-
MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareMem.S | 142 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CopyMem.S | 284 ++++++++++++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/AArch64/ScanMem.S | 161 +++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/AArch64/SetMem.S | 244 +++++++++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.S | 138 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.asm | 140 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/CopyMem.S | 172 ++++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/CopyMem.asm | 147 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.S | 146 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.asm | 147 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMemGeneric.c | 142 ++++++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.S | 75 ++++++
MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.asm | 81 ++++++
MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf | 37 ++-
17 files changed, 2182 insertions(+), 28 deletions(-)
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CopyMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/ScanMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/SetMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.asm
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CopyMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CopyMem.asm
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.asm
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMemGeneric.c
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.S
create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/SetMem.asm
--
2.7.4
next reply other threads:[~2016-09-07 14:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 14:52 Ard Biesheuvel [this message]
2016-09-07 14:52 ` [PATCH v4 1/3] MdePkg/BaseMemoryLib: widen aligned accesses to 32 or 64 bits Ard Biesheuvel
2016-09-07 14:52 ` [PATCH v4 2/3] MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines Ard Biesheuvel
2016-09-07 16:19 ` Ard Biesheuvel
2016-09-07 14:52 ` [PATCH v4 3/3] MdePkg/BaseMemoryLibOptDxe: add accelerated AARCH64 routines Ard Biesheuvel
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=1473259968-7221-1-git-send-email-ard.biesheuvel@linaro.org \
--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