[riot-commits] [RIOT-OS/RIOT] 5910ca: sys/net: Fix unaligned access on Samr21/Cortex-M0

Martine Lenders authmillenon at gmail.com
Tue Apr 21 12:18:05 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 5910cadb58c89b57f4d871239c9af787ed0a200e
      https://github.com/RIOT-OS/RIOT/commit/5910cadb58c89b57f4d871239c9af787ed0a200e
  Author: Lucas Jenss <lucas at x3ro.de>
  Date:   2015-03-29 (Sun, 29 Mar 2015)

  Changed paths:
    M sys/net/network_layer/sixlowpan/lowpan.c

  Log Message:
  -----------
  sys/net: Fix unaligned access on Samr21/Cortex-M0

*((uint16_t)*dest) results in a ldrh (load halfword) instruction
on an address that seems to not be halfword-aligned (?),
causing a hard-fault on the samr21-xpro board (cortex-m0
architecture). The issue seems to be very similar to
the one described in http://stackoverflow.com/a/21661366/124257


  Commit: ac25058f267d076a51d1970bb94d0fe3391ded1a
      https://github.com/RIOT-OS/RIOT/commit/ac25058f267d076a51d1970bb94d0fe3391ded1a
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M sys/net/network_layer/sixlowpan/lowpan.c

  Log Message:
  -----------
  Merge pull request #2727 from watr-li/unaligned-access-cortex-m0

Fix unaligned access on Samr21/Cortex-M0


Compare: https://github.com/RIOT-OS/RIOT/compare/deeb514d2d8f...ac25058f267d


More information about the commits mailing list