xref: /Kernel-v10.6.2/include/mpu_syscall_numbers.h (revision ef7b253b56c9788077f5ecd6c9deb4021923d646)
1 /*
2  * FreeRTOS Kernel V10.6.2
3  * Copyright (C) 2021 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
4  *
5  * SPDX-License-Identifier: MIT
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a copy of
8  * this software and associated documentation files (the "Software"), to deal in
9  * the Software without restriction, including without limitation the rights to
10  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11  * the Software, and to permit persons to whom the Software is furnished to do so,
12  * subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in all
15  * copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  *
24  * https://www.FreeRTOS.org
25  * https://github.com/FreeRTOS
26  *
27  */
28 
29 #ifndef MPU_SYSCALL_NUMBERS_H
30 #define MPU_SYSCALL_NUMBERS_H
31 
32 /* Numbers assigned to various system calls. */
33 #define SYSTEM_CALL_xTaskGenericNotify                     0
34 #define SYSTEM_CALL_xTaskGenericNotifyWait                 1
35 #define SYSTEM_CALL_xTimerGenericCommand                   2
36 #define SYSTEM_CALL_xEventGroupWaitBits                    3
37 #define SYSTEM_CALL_xTaskDelayUntil                        4
38 #define SYSTEM_CALL_xTaskAbortDelay                        5
39 #define SYSTEM_CALL_vTaskDelay                             6
40 #define SYSTEM_CALL_uxTaskPriorityGet                      7
41 #define SYSTEM_CALL_eTaskGetState                          8
42 #define SYSTEM_CALL_vTaskGetInfo                           9
43 #define SYSTEM_CALL_xTaskGetIdleTaskHandle                 10
44 #define SYSTEM_CALL_vTaskSuspend                           11
45 #define SYSTEM_CALL_vTaskResume                            12
46 #define SYSTEM_CALL_xTaskGetTickCount                      13
47 #define SYSTEM_CALL_uxTaskGetNumberOfTasks                 14
48 #define SYSTEM_CALL_pcTaskGetName                          15
49 #define SYSTEM_CALL_ulTaskGetRunTimeCounter                16
50 #define SYSTEM_CALL_ulTaskGetRunTimePercent                17
51 #define SYSTEM_CALL_ulTaskGetIdleRunTimePercent            18
52 #define SYSTEM_CALL_ulTaskGetIdleRunTimeCounter            19
53 #define SYSTEM_CALL_vTaskSetApplicationTaskTag             20
54 #define SYSTEM_CALL_xTaskGetApplicationTaskTag             21
55 #define SYSTEM_CALL_vTaskSetThreadLocalStoragePointer      22
56 #define SYSTEM_CALL_pvTaskGetThreadLocalStoragePointer     23
57 #define SYSTEM_CALL_uxTaskGetSystemState                   24
58 #define SYSTEM_CALL_uxTaskGetStackHighWaterMark            25
59 #define SYSTEM_CALL_uxTaskGetStackHighWaterMark2           26
60 #define SYSTEM_CALL_xTaskGetCurrentTaskHandle              27
61 #define SYSTEM_CALL_xTaskGetSchedulerState                 28
62 #define SYSTEM_CALL_vTaskSetTimeOutState                   29
63 #define SYSTEM_CALL_xTaskCheckForTimeOut                   30
64 #define SYSTEM_CALL_ulTaskGenericNotifyTake                31
65 #define SYSTEM_CALL_xTaskGenericNotifyStateClear           32
66 #define SYSTEM_CALL_ulTaskGenericNotifyValueClear          33
67 #define SYSTEM_CALL_xQueueGenericSend                      34
68 #define SYSTEM_CALL_uxQueueMessagesWaiting                 35
69 #define SYSTEM_CALL_uxQueueSpacesAvailable                 36
70 #define SYSTEM_CALL_xQueueReceive                          37
71 #define SYSTEM_CALL_xQueuePeek                             38
72 #define SYSTEM_CALL_xQueueSemaphoreTake                    39
73 #define SYSTEM_CALL_xQueueGetMutexHolder                   40
74 #define SYSTEM_CALL_xQueueTakeMutexRecursive               41
75 #define SYSTEM_CALL_xQueueGiveMutexRecursive               42
76 #define SYSTEM_CALL_xQueueSelectFromSet                    43
77 #define SYSTEM_CALL_xQueueAddToSet                         44
78 #define SYSTEM_CALL_vQueueAddToRegistry                    45
79 #define SYSTEM_CALL_vQueueUnregisterQueue                  46
80 #define SYSTEM_CALL_pcQueueGetName                         47
81 #define SYSTEM_CALL_pvTimerGetTimerID                      48
82 #define SYSTEM_CALL_vTimerSetTimerID                       49
83 #define SYSTEM_CALL_xTimerIsTimerActive                    50
84 #define SYSTEM_CALL_xTimerGetTimerDaemonTaskHandle         51
85 #define SYSTEM_CALL_pcTimerGetName                         52
86 #define SYSTEM_CALL_vTimerSetReloadMode                    53
87 #define SYSTEM_CALL_xTimerGetReloadMode                    54
88 #define SYSTEM_CALL_uxTimerGetReloadMode                   55
89 #define SYSTEM_CALL_xTimerGetPeriod                        56
90 #define SYSTEM_CALL_xTimerGetExpiryTime                    57
91 #define SYSTEM_CALL_xEventGroupClearBits                   58
92 #define SYSTEM_CALL_xEventGroupSetBits                     59
93 #define SYSTEM_CALL_xEventGroupSync                        60
94 #define SYSTEM_CALL_uxEventGroupGetNumber                  61
95 #define SYSTEM_CALL_vEventGroupSetNumber                   62
96 #define SYSTEM_CALL_xStreamBufferSend                      63
97 #define SYSTEM_CALL_xStreamBufferReceive                   64
98 #define SYSTEM_CALL_xStreamBufferIsFull                    65
99 #define SYSTEM_CALL_xStreamBufferIsEmpty                   66
100 #define SYSTEM_CALL_xStreamBufferSpacesAvailable           67
101 #define SYSTEM_CALL_xStreamBufferBytesAvailable            68
102 #define SYSTEM_CALL_xStreamBufferSetTriggerLevel           69
103 #define SYSTEM_CALL_xStreamBufferNextMessageLengthBytes    70
104 #define NUM_SYSTEM_CALLS                                   71  /* Total number of system calls. */
105 
106 #endif /* MPU_SYSCALL_NUMBERS_H */
107