Commit 20b896fe authored by Johannes Wiesboeck's avatar Johannes Wiesboeck Committed by Oliver Horst
Browse files

[chg] Moved syscall table definition to freertos+/stdlib/syscalls.h

parent 2b798134
#include <freertos/FreeRTOSConfig.h>
#include <freertos+/stdlib/syscalls.h>
#define ENTRY_SIZE 4
#define SYSCALL_TABLE_ENTRY(name) \
.org (syscall_table + ENTRY_SIZE*SYS_##name) ;\
#define SYSCALL_TABLE_ENTRY(name, nr) \
.org (syscall_table + SYSCALL_TABLE_ENTRY_SIZE*nr) ;\
b name ;
.global syscall_table
syscall_table:
#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(xQueueGenericSend)
#endif
SYSCALL_TABLE_ENTRY(xQueuePeek)
SYSCALL_TABLE_ENTRY(xQueuePeekFromISR)
SYSCALL_TABLE_ENTRY(xQueueReceive)
SYSCALL_TABLE_ENTRY(uxQueueMessagesWaiting)
SYSCALL_TABLE_ENTRY(uxQueueSpacesAvailable)
SYSCALL_TABLE_ENTRY(vQueueDelete)
SYSCALL_TABLE_ENTRY(xQueueGenericSendFromISR)
SYSCALL_TABLE_ENTRY(xQueueGiveFromISR)
SYSCALL_TABLE_ENTRY(xQueueReceiveFromISR)
SYSCALL_TABLE_ENTRY(xQueueIsQueueEmptyFromISR)
SYSCALL_TABLE_ENTRY(xQueueIsQueueFullFromISR)
SYSCALL_TABLE_ENTRY(uxQueueMessagesWaitingFromISR)
SYSCALL_TABLE_ENTRY(xQueueCreateMutex)
#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(xQueueCreateMutexStatic)
#endif
SYSCALL_TABLE_ENTRY(xQueueCreateCountingSemaphore)
#if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(xQueueCreateCountingSemaphoreStatic)
#endif
SYSCALL_TABLE_ENTRY(xQueueSemaphoreTake)
#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
SYSCALL_TABLE_ENTRY(xQueueGetMutexHolder)
#endif
#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
SYSCALL_TABLE_ENTRY(xQueueGetMutexHolderFromISR)
#endif
SYSCALL_TABLE_ENTRY(xQueueTakeMutexRecursive)
SYSCALL_TABLE_ENTRY(xQueueGiveMutexRecursive)
SYSCALL_TABLE_ENTRY(vQueueAddToRegistry)
SYSCALL_TABLE_ENTRY(vQueueUnregisterQueue)
SYSCALL_TABLE_ENTRY(pcQueueGetName)
SYSCALL_TABLE_ENTRY(xQueueGenericCreate)
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
SYSCALL_TABLE_ENTRY(xQueueGenericCreateStatic)
#endif
SYSCALL_TABLE_ENTRY(xQueueCreateSet)
SYSCALL_TABLE_ENTRY(xQueueAddToSet)
SYSCALL_TABLE_ENTRY(xQueueRemoveFromSet)
SYSCALL_TABLE_ENTRY(xQueueSelectFromSet)
SYSCALL_TABLE_ENTRY(xQueueSelectFromSetFromISR)
SYSCALL_TABLE_ENTRY(vQueueWaitForMessageRestricted)
SYSCALL_TABLE_ENTRY(xQueueGenericReset)
#if ( configUSE_TRACE_FACILITY == 1 )
SYSCALL_TABLE_ENTRY(vQueueSetQueueNumber)
SYSCALL_TABLE_ENTRY(uxQueueGetQueueNumber)
SYSCALL_TABLE_ENTRY(ucQueueGetQueueType)
#endif
#if( configUSE_TICKLESS_IDLE != 0 )
SYSCALL_TABLE_ENTRY(eTaskConfirmSleepModeStatus)
#endif
SYSCALL_TABLE_ENTRY(eTaskGetState)
SYSCALL_TABLE_ENTRY(pcTaskGetName)
SYSCALL_TABLE_ENTRY(pvTaskGetThreadLocalStoragePointer)
SYSCALL_TABLE_ENTRY(pvTaskIncrementMutexHeldCount)
SYSCALL_TABLE_ENTRY(ulTaskNotifyTake)
SYSCALL_TABLE_ENTRY(uxTaskGetNumberOfTasks)
#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
SYSCALL_TABLE_ENTRY(uxTaskGetStackHighWaterMark)
#endif
#if ( configUSE_TRACE_FACILITY == 1 )
SYSCALL_TABLE_ENTRY(uxTaskGetSystemState)
#endif
#if ( configUSE_TRACE_FACILITY == 1 )
SYSCALL_TABLE_ENTRY(uxTaskGetTaskNumber)
#endif
SYSCALL_TABLE_ENTRY(uxTaskPriorityGet)
SYSCALL_TABLE_ENTRY(uxTaskPriorityGetFromISR)
SYSCALL_TABLE_ENTRY(uxTaskResetEventItemValue)
#if ( portUSING_MPU_WRAPPERS == 1 )
SYSCALL_TABLE_ENTRY(vTaskAllocateMPURegions)
#endif
SYSCALL_TABLE_ENTRY(vTaskDelay)
SYSCALL_TABLE_ENTRY(vTaskDelayUntil)
SYSCALL_TABLE_ENTRY(vTaskDelete)
SYSCALL_TABLE_ENTRY(vTaskEndScheduler)
#if( configUSE_TRACE_FACILITY == 1 )
SYSCALL_TABLE_ENTRY(vTaskGetInfo)
#endif
#if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(vTaskGetRunTimeStats)
#endif
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(vTaskList)
#endif
SYSCALL_TABLE_ENTRY(vTaskMissedYield)
SYSCALL_TABLE_ENTRY(vTaskNotifyGiveFromISR)
SYSCALL_TABLE_ENTRY(vTaskPlaceOnEventList)
SYSCALL_TABLE_ENTRY(vTaskPlaceOnEventListRestricted)
SYSCALL_TABLE_ENTRY(vTaskPlaceOnUnorderedEventList)
SYSCALL_TABLE_ENTRY(vTaskPriorityDisinheritAfterTimeout)
SYSCALL_TABLE_ENTRY(vTaskPrioritySet)
SYSCALL_TABLE_ENTRY(vTaskRemoveFromUnorderedEventList)
SYSCALL_TABLE_ENTRY(vTaskResume)
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
SYSCALL_TABLE_ENTRY(vTaskSetApplicationTaskTag)
#endif
#if ( configUSE_TRACE_FACILITY == 1 )
SYSCALL_TABLE_ENTRY(vTaskSetTaskNumber)
#endif
SYSCALL_TABLE_ENTRY(vTaskSetThreadLocalStoragePointer)
SYSCALL_TABLE_ENTRY(vTaskSetTimeOutState)
SYSCALL_TABLE_ENTRY(vTaskStartScheduler)
#if ( configUSE_TICKLESS_IDLE != 0 )
SYSCALL_TABLE_ENTRY(vTaskStepTick)
#endif
SYSCALL_TABLE_ENTRY(vTaskSuspend)
SYSCALL_TABLE_ENTRY(vTaskSuspendAll)
SYSCALL_TABLE_ENTRY(vTaskSwitchContext)
#if ( INCLUDE_xTaskAbortDelay == 1 )
SYSCALL_TABLE_ENTRY(xTaskAbortDelay)
#endif
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
SYSCALL_TABLE_ENTRY(xTaskCallApplicationTaskHook)
#endif
SYSCALL_TABLE_ENTRY(xTaskCheckForTimeOut)
SYSCALL_TABLE_ENTRY(xTaskCreate)
#if( ( portUSING_MPU_WRAPPERS == 1 ) && ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) )
SYSCALL_TABLE_ENTRY(xTaskCreateRestricted)
#endif
#if( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
SYSCALL_TABLE_ENTRY(xTaskCreateRestrictedStatic)
#endif
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
SYSCALL_TABLE_ENTRY(xTaskCreateStatic)
#endif
SYSCALL_TABLE_ENTRY(xTaskGenericNotify)
SYSCALL_TABLE_ENTRY(xTaskGenericNotifyFromISR)
#if ( configUSE_APPLICATION_TASK_TAG == 1 )
SYSCALL_TABLE_ENTRY(xTaskGetApplicationTaskTag)
#endif
SYSCALL_TABLE_ENTRY(xTaskGetCurrentTaskHandle)
#if ( INCLUDE_xTaskGetHandle == 1 )
SYSCALL_TABLE_ENTRY(xTaskGetHandle)
#endif
#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 )
SYSCALL_TABLE_ENTRY(xTaskGetIdleTaskHandle)
#endif
SYSCALL_TABLE_ENTRY(xTaskGetSchedulerState)
SYSCALL_TABLE_ENTRY(xTaskGetTickCount)
SYSCALL_TABLE_ENTRY(xTaskGetTickCountFromISR)
SYSCALL_TABLE_ENTRY(xTaskIncrementTick)
SYSCALL_TABLE_ENTRY(xTaskNotifyWait)
SYSCALL_TABLE_ENTRY(xTaskPriorityDisinherit)
SYSCALL_TABLE_ENTRY(xTaskPriorityInherit)
SYSCALL_TABLE_ENTRY(xTaskRemoveFromEventList)
SYSCALL_TABLE_ENTRY(xTaskResumeAll)
SYSCALL_TABLE_ENTRY(xTaskResumeFromISR)
SYSCALL_TABLE_ENTRY(hal_uart_getchar)
SYSCALL_TABLE_ENTRY(hal_uart_putchar)
SYSCALL_TABLE_ENTRY(uxHalGetCpuId)
/* The contents of syscalls.h will be expanded here and with the macro above
evaluate to the libc (application) side of the syscall interface */
#include <freertos+/stdlib/syscalls.h>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment