summaryrefslogtreecommitdiffstats
path: root/bsps/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-01-11 17:59:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-01-11 18:01:17 +0100
commit00081b30a8b879d5e0a91d1ce369ec6c9eb9b839 (patch)
tree972264868c97cf013108b5a30950a47b24aa215f /bsps/shared
parentbsp/qoriq: Implement Interrupt Manager directives (diff)
downloadrtems-00081b30a8b879d5e0a91d1ce369ec6c9eb9b839.tar.bz2
Fix device tree blob alignment
A device tree blob must be aligned on an 8-byte boundary.
Diffstat (limited to 'bsps/shared')
-rw-r--r--bsps/shared/start/bsp-fdt.c8
1 files changed, 4 insertions, 4 deletions
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)