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

Skip to content
Commit 14a18d8e authored by Eric Holmberg's avatar Eric Holmberg Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: smd: Add memcpy functions to handle 8-byte alignment



The standard memcpy implementation is not intended to be used for device
memory and hence does not handle the more restrictive device-memory
alignment constraints.  This may lead to a data abort when transferring
unaligned data to or from device memory when the transfer size is
greater than 1 byte.

Implement memcpy that will do byte-aligned copies until the address is
8-byte aligned, do multi-byte aligned copies, and then finish with
byte-aligned copies again as necessary.

Change-Id: I2da9050ca81a8dfaf24ce1b63b8339058e74ba0b
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent e432f9a6
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