Aligned operations mismatch

Mikhail Svetkin mikhail.svetkin at gmail.com
Wed Aug 22 14:49:56 UTC 2018


Hi all,

I have found a problem with assembler code generation in network stack on
ARM processor (aligment fault).

I am using:
arm-rtems5-gcc (GCC) 7.2.0 20170814 (RTEMS 5, RSB
a6d011e028a0776cedf0823940eb882e917a44e5, Newlib 2.5.0.20170922)

The compiler generates invalid instruction 'ldmia' here (
https://git.rtems.org/rtems/tree/cpukit/libnetworking/netinet/udp_usrreq.c#n160
).

The instruction does not support unaligned accesses.

Also i have found the bug fix in FreeBSD repository (
https://github.com/freebsd/freebsd/commit/6cc0e8d2a0b583db5707f811d4ebfbe1ad05e628
)

I tried their solution and it works.

Should I create a ticket for that?

Best regards,
Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180822/2369360b/attachment.html>


More information about the devel mailing list