From 84a156c77e66b995583686e49effb50e39f94f65 Mon Sep 17 00:00:00 2001 From: Krystian Hebel Date: Wed, 30 Sep 2020 17:56:04 +0200 Subject: ppc64/byteorder.h: define use of big endian All of the build configuration is set to produce big endian image on PPC64. In addition, the toolchain produced by coreboot-sdk does not include little endian libraries so it is not possible to build LE image even when that configuration is changed. This patch changes byte order definition which is required for proper work of functions that deal with endianness, like read_{le,be}*() or {le,be}*toh(). It also revealed bugs related to the endianness on BE targets that are addressed in the following patches. Signed-off-by: Krystian Hebel Change-Id: Id31328a832d11db20822733304b0ae477e858d25 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55037 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/arch/ppc64/include/arch/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/ppc64/include/arch/byteorder.h b/src/arch/ppc64/include/arch/byteorder.h index 2485358044..79f15b1eb3 100644 --- a/src/arch/ppc64/include/arch/byteorder.h +++ b/src/arch/ppc64/include/arch/byteorder.h @@ -3,6 +3,6 @@ #ifndef _BYTEORDER_H #define _BYTEORDER_H -#define __LITTLE_ENDIAN 1234 +#define __BIG_ENDIAN 4321 #endif /* _BYTEORDER_H */ -- cgit v1.2.3