[PATCH] arch/riscv/lib: update memmove and memcpy for big-endian

Leo Liang ycliang at andestech.com
Tue Aug 12 08:00:13 CEST 2025


On Thu, Aug 07, 2025 at 05:49:33PM +0100, Ben Dooks wrote:
> Change the shift patterns for the unaligned memory move and copy code
> to deal with big-endian by definign macros to change the shfit left and
> right to go the opposite way.
> 
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
> ---
>  arch/riscv/lib/memcpy.S  | 12 ++++++++++--
>  arch/riscv/lib/memmove.S | 12 ++++++++++--
>  2 files changed, 20 insertions(+), 4 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list