Changeset 00081b3 in rtems


Ignore:
Timestamp:
01/11/22 16:59:34 (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
37377b0
Parents:
cbc9232
git-author:
Sebastian Huber <sebastian.huber@…> (01/11/22 16:59:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/11/22 17:01:17)
Message:

Fix device tree blob alignment

A device tree blob must be aligned on an 8-byte boundary.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/start/bsp-fdt.c

    rcbc9232 r00081b3  
    2929
    3030#ifdef BSP_FDT_BLOB_READ_ONLY
    31 static const uint32_t
    32 bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT =
     31static RTEMS_ALIGNED(8) const uint32_t
     32bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] =
    3333  { 0xdeadbeef };
    3434#else
    35 static uint32_t
    36 bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)] CPU_STRUCTURE_ALIGNMENT;
     35static RTEMS_ALIGNED(8) uint32_t
     36bsp_fdt_blob[BSP_FDT_BLOB_SIZE_MAX / sizeof(uint32_t)];
    3737#endif
    3838
  • testsuites/libtests/libfdt01/some.c

    rcbc9232 r00081b3  
    55 */
    66
    7 #include <sys/types.h>
     7#include <rtems.h>
    88
    9 const unsigned char some_bin[] = {
     9RTEMS_ALIGNED(8) const unsigned char some_bin[] = {
    1010  0xd0, 0x0d, 0xfe, 0xed, 0x00, 0x00, 0x01, 0xd8, 0x00, 0x00, 0x00, 0x38,
    1111  0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x11,
Note: See TracChangeset for help on using the changeset viewer.