From a3c4469b1fad03cf7140d03045b0bfb301a72189 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 16 Jun 2015 16:23:36 +1000 Subject: [PATCH] Add a linker script comment for all the patched newlib _lock_xxx symbols --- ld/eagle.app.v6.ld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ld/eagle.app.v6.ld b/ld/eagle.app.v6.ld index 173db63..3505fb8 100644 --- a/ld/eagle.app.v6.ld +++ b/ld/eagle.app.v6.ld @@ -11,6 +11,13 @@ pvPortMalloc = malloc; 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_recursive = vPortEnterCritical; _lock_try_acquire = vPortEnterCritical;