[PATCH v2 2/2] riscv: byteorder: add test for big-endian

Leo Liang ycliang at andestech.com
Thu Jul 3 10:26:25 CEST 2025


On Fri, Jun 13, 2025 at 05:12:58PM +0100, Ben Dooks wrote:
> Test for big-endian either via __RISCVEB__ which migth be
> rather old, or check the BYTE_ORDER if the compiler defines
> it (which should be any modern gcc like v12)
> 
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
> ---
>  arch/riscv/include/asm/byteorder.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the U-Boot mailing list