[riot-commits] [RIOT-OS/RIOT] 2ed0dd: sys/newlib: enable multiple heaps in _sbrk_r

Gunar Schorcht noreply at github.com
Tue Feb 25 19:16:47 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2ed0dd7405101c24ac488436a49a71606c0f12a0
      https://github.com/RIOT-OS/RIOT/commit/2ed0dd7405101c24ac488436a49a71606c0f12a0
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M sys/newlib_syscalls_default/syscalls.c

  Log Message:
  -----------
  sys/newlib: enable multiple heaps in _sbrk_r

Some MCUs have non-continuous memory regions.
To support those, iterate over all available memory regions
and allocate the first region that fits.


  Commit: 24ed1bbb7061fca5cd73b70c694c5a7be74f058f
      https://github.com/RIOT-OS/RIOT/commit/24ed1bbb7061fca5cd73b70c694c5a7be74f058f
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M cpu/lpc2387/include/cpu_conf.h
    M cpu/lpc2387/ldscripts/lpc2387.ld

  Log Message:
  -----------
  cpu/lpc2387: hook up extra memory sections as heap

This enables the USB, Ethernet and Backup memory regions to be used
as heap memory.


  Commit: cfd0ef415e7ebc03d89bbe8cd4774e6c83a5a60f
      https://github.com/RIOT-OS/RIOT/commit/cfd0ef415e7ebc03d89bbe8cd4774e6c83a5a60f
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M cpu/cortexm_common/ldscripts/cortexm_base.ld
    M cpu/sam0_common/include/cpu_conf.h

  Log Message:
  -----------
  cpu/sam0_common: hook up low power RAM as extra heap

This enables unused low-lower RAM on saml21/samd5x to be used for
heap memory.


  Commit: f688f84a15d89d8c243cf7147a7291d7e381eea7
      https://github.com/RIOT-OS/RIOT/commit/f688f84a15d89d8c243cf7147a7291d7e381eea7
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2020-02-25 (Tue, 25 Feb 2020)

  Changed paths:
    M cpu/cortexm_common/ldscripts/cortexm_base.ld
    M cpu/lpc2387/include/cpu_conf.h
    M cpu/lpc2387/ldscripts/lpc2387.ld
    M cpu/sam0_common/include/cpu_conf.h
    M sys/newlib_syscalls_default/syscalls.c

  Log Message:
  -----------
  Merge pull request #12928 from benpicco/newlib-multiheap

sys/newlib: enable multiple heaps in _sbrk_r()


Compare: https://github.com/RIOT-OS/RIOT/compare/aa1c23d4bd3f...f688f84a15d8


More information about the commits mailing list