mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-20 03:05:47 +08:00
Fix device tree blob alignment
A device tree blob must be aligned on an 8-byte boundary.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user