Add a linker script comment for all the patched newlib _lock_xxx symbols

This commit is contained in:
Angus Gratton 2015-06-16 16:23:36 +10:00
parent b7b16de429
commit a3c4469b1f

View file

@ -11,6 +11,13 @@
pvPortMalloc = malloc; pvPortMalloc = malloc;
vPortFree = free; vPortFree = free;
/* FreeRTOS lock functions.
Rely on a patch to libc that produces weak linked versions of the
below symbols. Currently treating locking primitives like universal
global critical section rather than individual locks, but this seems
OK from the use cases in newlib.
*/
_lock_acquire = vPortEnterCritical; _lock_acquire = vPortEnterCritical;
_lock_acquire_recursive = vPortEnterCritical; _lock_acquire_recursive = vPortEnterCritical;
_lock_try_acquire = vPortEnterCritical; _lock_try_acquire = vPortEnterCritical;