From 00081b30a8b879d5e0a91d1ce369ec6c9eb9b839 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 11 Jan 2022 17:59:34 +0100 Subject: Fix device tree blob alignment A device tree blob must be aligned on an 8-byte boundary. --- bsps/shared/start/bsp-fdt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bsps/shared') diff --git a/bsps/shared/start/bsp-fdt.c b/bsps/shared/start/bsp-fdt.c index 50a485eb16..f0a7e54572 100644 --- a/bsps/shared/start/bsp-fdt.c +++ b/bsps/shared/start/bsp-fdt.c @@ -28,12 +28,12 @@ #endif #ifdef BSP_FDT_BLOB_READ_ONLY -static const uint32_t -bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT = +static RTEMS_ALIGNED(8) const uint32_t +bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] = { 0xdeadbeef }; #else -static uint32_t -bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT; +static RTEMS_ALIGNED(8) uint32_t +bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)]; #endif void bsp_fdt_copy(const void *src) -- cgit v1.2.3