Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2f668101 authored by Alex Van Brunt's avatar Alex Van Brunt Committed by Stepan Moskovchenko
Browse files

arm64: emulate the swp/swpb instruction



The swp and spwb instructions were deprecated in ARMv6. ARMv8
obsoleted the instruction. Despite this, many applications rely on
these instruuctions.

This patch starts with the version present in the arm architecture.
However, it uses the ldx*()/stx*() functions to implement the handler
in C code. It also removes a lot of code that is not needed.

Bug 1438816

Change-Id: I6882fbe5f71bfa8f9e9a75d067b2111188c6f2fa
Signed-off-by: default avatarAlex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/366097


Reviewed-by: default avatarRichard Wiley <rwiley@nvidia.com>
Tested-by: default avatarOskari Jaaskelainen <oskarij@nvidia.com>
[stepanm@codeaurora.org: resolve merge conflicts]
Git-commit: 78faf3dda07b85a821c9f118c595574d8e71d356
Git-repo: https://android.googlesource.com/kernel/tegra


Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
parent 6d9f5184
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment