summaryrefslogtreecommitdiffstats
path: root/src/drivers/amd
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-16 09:28:18 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-17 21:11:53 +0000
commite6a60fd173e9540cd9a3c86d36be07148af9b119 (patch)
tree905750cd354888b1bacb091929488f035dc69272 /src/drivers/amd
parent0c6dc828f649692f4fdb418078c3da6824582658 (diff)
downloadcoreboot-e6a60fd173e9540cd9a3c86d36be07148af9b119.tar.gz
coreboot-e6a60fd173e9540cd9a3c86d36be07148af9b119.tar.bz2
coreboot-e6a60fd173e9540cd9a3c86d36be07148af9b119.zip
amd/agesa/heapmanager.c: Avoid pragma pack on the rest of the file
AGESA.h has a '#pragma pack' nested somewhere. The pack pragma packs all structs which is not what is expected in the structs inside the headers included below AGESA.h. Change-Id: Ia70f68ea0ece7c097a37517206d75b71d695561f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64382 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/drivers/amd')
-rw-r--r--src/drivers/amd/agesa/heapmanager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/amd/agesa/heapmanager.c b/src/drivers/amd/agesa/heapmanager.c
index c1fac0dadb45..e2bafb9dce92 100644
--- a/src/drivers/amd/agesa/heapmanager.c
+++ b/src/drivers/amd/agesa/heapmanager.c
@@ -1,6 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#pragma pack(push)
#include <AGESA.h>
+#pragma pack(pop)
+
#include <amdlib.h>
#include <cbmem.h>