From b1db7e4367e3e34140ee12447d7692019d33007a Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Thu, 17 Mar 2022 13:41:17 +0100 Subject: Endian conversion: move to platform.h and platform/endian*.c Starting to move the platform dependent code to platform/ and provide the abstraction through the platform.h header. Change-Id: I35640282d451960f2a329ae24339ec05dbae6d30 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/62899 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- platform/endian_big.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 platform/endian_big.c (limited to 'platform/endian_big.c') diff --git a/platform/endian_big.c b/platform/endian_big.c new file mode 100644 index 00000000..5d65500d --- /dev/null +++ b/platform/endian_big.c @@ -0,0 +1,42 @@ +/* + * This file is part of the flashrom project. + * + * Copyright (C) 2022 secunet Security Networks AG + * (written by Thomas Heijligen