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

Skip to content
Commit 4a394c05 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: smem_log: 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: I7cc20128546b1334f0689072c2fce685b473144a
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent a8f114cc
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