arch/riscv/lib: update memmove and memcpy for big-endian
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 7 Aug 2025 16:49:33 +0000 (17:49 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 14 Aug 2025 07:33:00 +0000 (15:33 +0800)
commit35d6caad6de93b3a5545df7bcdc6d322a4edb93c
treebe2fc713df109399cc086870737f8c6b5260bb44
parent909ceacf4a8ac5360c25588f9db7b6dbd19c5c06
arch/riscv/lib: update memmove and memcpy for big-endian

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@codethink.co.uk>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/memcpy.S
arch/riscv/lib/memmove.S