summaryrefslogtreecommitdiffstats
path: root/bsps/arm/imxrt/include/bsp.h
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2022-02-16 10:21:54 +0100
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2022-02-21 09:30:05 +0100
commit6fe6622489217d2e42dc7bf2349aff74f6cc0766 (patch)
tree817d1ee9b93922cc9d181222080c2285adec80cf /bsps/arm/imxrt/include/bsp.h
parentbsp/arm/zynq: Cadence I2C has moved, update to the new path (diff)
downloadrtems-6fe6622489217d2e42dc7bf2349aff74f6cc0766.tar.bz2
bsp/imxrt: Enforce alignment for devicetree
A device tree binary has to be 8 byte aligned in memory. This is checked since RTEMS commit 34052ef78cf8724dee73e9279b2c6bff8cfed234 "libfdt: Add FDT alignment check to fdt_check_header()".
Diffstat (limited to 'bsps/arm/imxrt/include/bsp.h')
-rw-r--r--bsps/arm/imxrt/include/bsp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/arm/imxrt/include/bsp.h b/bsps/arm/imxrt/include/bsp.h
index f93c28aee0..6d5c7fe05e 100644
--- a/bsps/arm/imxrt/include/bsp.h
+++ b/bsps/arm/imxrt/include/bsp.h
@@ -57,7 +57,7 @@ extern "C" {
#define BSP_FEATURE_IRQ_EXTENSION
#define BSP_FDT_IS_SUPPORTED
-extern const unsigned char imxrt_dtb[];
+extern const unsigned char imxrt_dtb[] __attribute__(( __aligned__(8) ));
extern const size_t imxrt_dtb_size;
void *imx_get_reg_of_node(const void *fdt, int node);