summaryrefslogtreecommitdiffstats
path: root/src/arch/ppc64
diff options
context:
space:
mode:
authorKrystian Hebel <krystian.hebel@3mdeb.com>2020-09-30 17:56:04 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-09 11:46:30 +0000
commit84a156c77e66b995583686e49effb50e39f94f65 (patch)
treea54923eac4d9f77eec156d9f3e799d9ae5ca577f /src/arch/ppc64
parent4676279151659922da8717712c523a103575a21a (diff)
downloadcoreboot-84a156c77e66b995583686e49effb50e39f94f65.tar.gz
coreboot-84a156c77e66b995583686e49effb50e39f94f65.tar.bz2
coreboot-84a156c77e66b995583686e49effb50e39f94f65.zip
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 <krystian.hebel@3mdeb.com> Change-Id: Id31328a832d11db20822733304b0ae477e858d25 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55037 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch/ppc64')
-rw-r--r--src/arch/ppc64/include/arch/byteorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/ppc64/include/arch/byteorder.h b/src/arch/ppc64/include/arch/byteorder.h
index 248535804414..79f15b1eb329 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 */