[rtems commit] libtests/ofw01: Fix device tree blob alignment

Sebastian Huber sebh at rtems.org
Thu Jan 13 18:43:01 UTC 2022


Module:    rtems
Branch:    master
Commit:    671f126a3a8e6ce5da87aa75c7205fb764e95c78
Changeset: http://git.rtems.org/rtems/commit/?id=671f126a3a8e6ce5da87aa75c7205fb764e95c78

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jan 13 15:15:12 2022 +0100

libtests/ofw01: Fix device tree blob alignment

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

---

 testsuites/libtests/ofw01/some.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuites/libtests/ofw01/some.c b/testsuites/libtests/ofw01/some.c
index 91251e7..7ce8760 100644
--- a/testsuites/libtests/ofw01/some.c
+++ b/testsuites/libtests/ofw01/some.c
@@ -4,9 +4,9 @@
  *  WARNING: Automatically generated -- do not edit!
  */
 
-#include <sys/types.h>
+#include <rtems.h>
 
-const unsigned char some_bin[] = {
+RTEMS_ALIGNED(8) const unsigned char some_bin[] = {
   0xd0, 0x0d, 0xfe, 0xed, 0x00, 0x00, 0x02, 0xcf, 0x00, 0x00, 0x00, 0x38, 
   0x00, 0x00, 0x02, 0x70, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x11, 
   0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5f, 



More information about the vc mailing list