[riot-commits] [RIOT-OS/RIOT] f52162: cpu/atmega_common: wrappers to avoid preemtion

Marian Buschsieweke noreply at github.com
Tue Aug 13 12:57:44 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f52162bcb040e6ccf1aadad016b4ff06662a1cb8
      https://github.com/RIOT-OS/RIOT/commit/f52162bcb040e6ccf1aadad016b4ff06662a1cb8
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-08-12 (Mon, 12 Aug 2019)

  Changed paths:
    M cpu/atmega_common/avr_libc_extra/posix_unistd.c

  Log Message:
  -----------
  cpu/atmega_common: wrappers to avoid preemtion

Memory management function like `malloc`, `calloc`, `realloc` and `free` must not be preempted when they operate on allocator structures. To avoid such a preemption, wrappers around these functions are used which simply disable all interrupts for the time of their execution.


  Commit: d84f75b4d0147a8268d444be3cfb3726f85898a6
      https://github.com/RIOT-OS/RIOT/commit/d84f75b4d0147a8268d444be3cfb3726f85898a6
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-08-12 (Mon, 12 Aug 2019)

  Changed paths:
    M makefiles/arch/atmega.inc.mk

  Log Message:
  -----------
  cpu/atmega_common: activate wrapper functions when linking


  Commit: 49859fc1ce19376663dbf31769144b2cddcaf571
      https://github.com/RIOT-OS/RIOT/commit/49859fc1ce19376663dbf31769144b2cddcaf571
  Author: Marian Buschsieweke <maribu at users.noreply.github.com>
  Date:   2019-08-13 (Tue, 13 Aug 2019)

  Changed paths:
    M cpu/atmega_common/avr_libc_extra/posix_unistd.c
    M makefiles/arch/atmega.inc.mk

  Log Message:
  -----------
  Merge pull request #11998 from gschorcht/cpu/atmega_common/malloc-wrappers

cpu/atmega_common: wrappers for memory management function to avoid preemption


Compare: https://github.com/RIOT-OS/RIOT/compare/3e1077b17b94...49859fc1ce19


More information about the commits mailing list