[riot-commits] [RIOT-OS/RIOT] 1b89f3: msp430: provide oneway-malloc implicitly

René Kijewski kijewski at mi.fu-berlin.de
Fri May 23 14:19:01 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 1b89f334e396cf2d097605ac56629d8d7e709585
      https://github.com/RIOT-OS/RIOT/commit/1b89f334e396cf2d097605ac56629d8d7e709585
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-22 (Thu, 22 May 2014)

  Changed paths:
    R core/include/oneway_malloc.h
    R core/oneway_malloc.c
    M cpu/msp430-common/Makefile.include
    R cpu/msp430-common/include/malloc.h
    M sys/Makefile
    M sys/Makefile.include
    A sys/oneway-malloc/Makefile
    A sys/oneway-malloc/include/malloc.h
    A sys/oneway-malloc/oneway-malloc.c

  Log Message:
  -----------
  msp430: provide oneway-malloc implicitly

For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
included. The problem is that `malloc.h` is not a standard header, even
though it is common. `stdlib.h` in the right place to look for
`malloc()` and friends.

This change removes this discrepancy. `malloc()` is just named like
that, without the leading underscore. The symbols now are weak, which
means that they won't override library functions if MSP's standard
library will provide these functions at some point. (Unlikely, since
using `malloc()` on tiny systems is less then optimal ...)

Closes #1061 and #863.


  Commit: 75f71992e5477e787a54a823239cd4f48df22c81
      https://github.com/RIOT-OS/RIOT/commit/75f71992e5477e787a54a823239cd4f48df22c81
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-22 (Thu, 22 May 2014)

  Changed paths:
    M sys/oneway-malloc/include/malloc.h

  Log Message:
  -----------
  Add doxygen comments to MSP's oneway malloc


  Commit: f3eeb98a01b7ca21d682c4fbf4707db56d1b4bf0
      https://github.com/RIOT-OS/RIOT/commit/f3eeb98a01b7ca21d682c4fbf4707db56d1b4bf0
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-22 (Thu, 22 May 2014)

  Changed paths:
    M tests/test_bloom_bytes/Makefile

  Log Message:
  -----------
  msp/tests: remove blacklist from test_bloom_bytes

Issue #1061 was fixed.


  Commit: e8bf4ef6a20d394f9ebe18815dd27bc147d8bfab
      https://github.com/RIOT-OS/RIOT/commit/e8bf4ef6a20d394f9ebe18815dd27bc147d8bfab
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-05-23 (Fri, 23 May 2014)

  Changed paths:
    R core/include/oneway_malloc.h
    R core/oneway_malloc.c
    M cpu/msp430-common/Makefile.include
    R cpu/msp430-common/include/malloc.h
    M sys/Makefile
    M sys/Makefile.include
    A sys/oneway-malloc/Makefile
    A sys/oneway-malloc/include/malloc.h
    A sys/oneway-malloc/oneway-malloc.c
    M tests/test_bloom_bytes/Makefile

  Log Message:
  -----------
  Merge pull request #1182 from Kijewski/msp-oneway-malloc

msp430: provide oneway-malloc implicitly


Compare: https://github.com/RIOT-OS/RIOT/compare/9f40d019e323...e8bf4ef6a20d


More information about the commits mailing list