mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
freertos(SMP): Update SMP FreeRTOS linker fragment file
This commit updates the linker fragment file for Amazon SMP FreeRTOS. - Linker fragment file's formatting was updated - Placement rules of functions is now clearly specified inside the linker fragment file. - Some extra functions are now placed in flash in accordance to the new placement rules.
This commit is contained in:
committed by
Sudeep Mohanty
parent
55644575db
commit
4ac68a97d9
@ -201,7 +201,7 @@ This file get's pulled into assembly sources. Therefore, some includes need to b
|
||||
#define INCLUDE_xSemaphoreGetMutexHolder 1
|
||||
#define INCLUDE_xTaskGetHandle 1
|
||||
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
||||
#define INCLUDE_uxTaskGetStackHighWaterMark2 0
|
||||
#define INCLUDE_uxTaskGetStackHighWaterMark2 1
|
||||
#define INCLUDE_eTaskGetState 1
|
||||
#define INCLUDE_xTaskResumeFromISR 1
|
||||
#define INCLUDE_xTimerPendFunctionCall 1
|
||||
|
@ -1,12 +1,23 @@
|
||||
# ----------------------------------------------------------------------------------------------------------------------
|
||||
# Linker fragment file for SMP FreeRTOS (i.e., CONFIG_FREERTOS_SMP=y)
|
||||
[mapping:freertos]
|
||||
# Flash function placements are listed per source file, in the order that they appear in the source file.
|
||||
#
|
||||
# Placement Rules:
|
||||
# - Default: Place all functions in internal RAM.
|
||||
# - CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH:
|
||||
# - Place functions in flash if they are never called from an ISR context (directly or indirectly).
|
||||
# - Some functions that are called often (such as critical sections) are placed in internal RAM for speed.
|
||||
# ----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
[mapping:freertos_smp]
|
||||
archive: libfreertos.a
|
||||
entries:
|
||||
# Default all FreeRTOS functions to IRAM
|
||||
* (noflash_text)
|
||||
# Todo: Check if flash placements are missing or can be further optimized IDF-5259
|
||||
* (noflash_text) # Default all FreeRTOS functions to IRAM
|
||||
if FREERTOS_PLACE_FUNCTIONS_INTO_FLASH = y:
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# event_groups.c
|
||||
# - Exclude all ...FromISR() functions and their dependents
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
event_groups:xEventGroupCreateStatic (default)
|
||||
event_groups:xEventGroupCreate (default)
|
||||
event_groups:xEventGroupSync (default)
|
||||
@ -20,8 +31,17 @@ entries:
|
||||
if FREERTOS_USE_TRACE_FACILITY = y:
|
||||
event_groups: uxEventGroupGetNumber (default)
|
||||
event_groups: vEventGroupSetNumber (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# list.c
|
||||
# - List/List Item initialization functions are never called from ISR
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
list:vListInitialise (default)
|
||||
list:vListInitialiseItem (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# queue.c
|
||||
# - Keep all ...FromISR() functions (and their prv... calls) in internal RAM
|
||||
# - All other functions can be moved to flash
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
queue:xQueueGenericReset (default)
|
||||
queue:xQueueGenericCreateStatic (default)
|
||||
queue:xQueueGenericCreate (default)
|
||||
@ -58,8 +78,34 @@ entries:
|
||||
queue:xQueueAddToSet (default)
|
||||
queue:xQueueRemoveFromSet (default)
|
||||
queue:xQueueSelectFromSet (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# stream_buffer.c
|
||||
# tasks.c: Vanilla
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
stream_buffer:xStreamBufferGenericCreate (default)
|
||||
stream_buffer:xStreamBufferGenericCreateStatic (default)
|
||||
stream_buffer:vStreamBufferDelete (default)
|
||||
stream_buffer:xStreamBufferReset (default)
|
||||
stream_buffer:xStreamBufferSetTriggerLevel (default)
|
||||
stream_buffer:xStreamBufferBytesAvailable (default)
|
||||
stream_buffer:xStreamBufferSend (default)
|
||||
stream_buffer:xStreamBufferReceive (default)
|
||||
stream_buffer:xStreamBufferNextMessageLengthBytes (default)
|
||||
stream_buffer:xStreamBufferIsEmpty (default)
|
||||
stream_buffer:xStreamBufferIsFull (default)
|
||||
stream_buffer:prvWriteBytesToBuffer (default)
|
||||
stream_buffer:prvReadBytesFromBuffer (default)
|
||||
stream_buffer:prvInitialiseNewStreamBuffer (default)
|
||||
if FREERTOS_USE_TRACE_FACILITY = y:
|
||||
stream_buffer:uxStreamBufferGetStreamBufferNumber (default)
|
||||
stream_buffer:vStreamBufferSetStreamBufferNumber (default)
|
||||
stream_buffer:ucStreamBufferGetStreamBufferType (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# tasks.c
|
||||
# - The following functions are called when the cache is disabled, thus they are excluded from the list below
|
||||
# (i.e., called after "spi_flash_disable_interrupts_caches_and_other_cpu()" is called).
|
||||
# - "xTaskGetSchedulerState"
|
||||
# - "xTaskGetTickCount"
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
tasks:xTaskCreateStatic (default)
|
||||
tasks:xTaskCreate (default)
|
||||
if FREERTOS_UNICORE = n:
|
||||
@ -125,10 +171,10 @@ entries:
|
||||
tasks:xTaskGenericNotify (default)
|
||||
tasks:xTaskGenericNotifyStateClear (default)
|
||||
tasks:ulTaskGenericNotifyValueClear (default)
|
||||
# port
|
||||
port: pxPortInitialiseStack (default)
|
||||
port: xPortStartScheduler (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# timers.c
|
||||
# - Only timer function called from ISR is xTimerGenericCommandFromISR() and its dependents
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
timers:xTimerCreateTimerTask (default)
|
||||
timers:xTimerCreate (default)
|
||||
timers:xTimerCreateStatic (default)
|
||||
@ -156,3 +202,41 @@ entries:
|
||||
if FREERTOS_USE_TRACE_FACILITY = y:
|
||||
timers:uxTimerGetTimerNumber (default)
|
||||
timers:vTimerSetTimerNumber (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# portable/xtensa/port.c
|
||||
# - Most functions are called from an ISR context, except for scheduler/task init/deinit functions
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
if IDF_TARGET_ARCH_XTENSA = y:
|
||||
port:vPortSetupTimer (default)
|
||||
port:xPortStartScheduler (default)
|
||||
port:vPortEndScheduler (default)
|
||||
port:pvPortMalloc (default)
|
||||
port:vPortFree (default)
|
||||
port:vPortInitialiseBlocks (default)
|
||||
port:xPortGetFreeHeapSize (default)
|
||||
if FREERTOS_TASK_FUNCTION_WRAPPER = y:
|
||||
port:vPortTaskWrapper (default)
|
||||
port:pxPortInitialiseStack (default)
|
||||
if FREERTOS_UNICORE = n:
|
||||
port:vPortCleanUpCoprocArea (default)
|
||||
if FREERTOS_TLSP_DELETION_CALLBACKS = y:
|
||||
port:vPortTLSPointersDelCb (default)
|
||||
port:vPortCleanUpTCB (default)
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
# portable/riscv/port.c
|
||||
# - Most functions are called from an ISR context, except for scheduler/task init/deinit functions
|
||||
# --------------------------------------------------------------------------------------------------------------
|
||||
if IDF_TARGET_ARCH_RISCV = y:
|
||||
port:vPortSetupTimer (default)
|
||||
port:xPortStartScheduler (default)
|
||||
port:vPortEndScheduler (default)
|
||||
port:pvPortMalloc (default)
|
||||
port:vPortFree (default)
|
||||
port:vPortInitialiseBlocks (default)
|
||||
port:xPortGetFreeHeapSize (default)
|
||||
if FREERTOS_TASK_FUNCTION_WRAPPER = y:
|
||||
port:vPortTaskWrapper (default)
|
||||
port:pxPortInitialiseStack (default)
|
||||
if FREERTOS_TLSP_DELETION_CALLBACKS = y:
|
||||
port:vPortTLSPointersDelCb (default)
|
||||
port:vPortCleanUpTCB (default)
|
||||
|
Reference in New Issue
Block a user