Handle syscall exceptions. More...
Go to the source code of this file.
Macros | |
| #define | SYSCALL_ID_YIELD 0 |
| #define | SYSCALL_ID_ASSERT 1 |
| #define | SYSCALL_ID_OUT_OF_MEMORY 2 |
| #define | SYSCALL_REGISTRY_SIZE 2 |
| #define | SYSCALL(num, arg1, arg2, arg3) |
| Calls a Syscall with a linux like calling convention. | |
| #define | SYSCALL_YIELD() |
| Called for FreeRTOS to task switch the current context. | |
| #define | SYSCALL_ASSERT(error_name, line, file) |
| Called for when an assert fails to report the information. | |
Typedefs | |
| typedef uint32_t(* | syscall_handler_t) (exception_context_t *context, uint32_t arg1, uint32_t arg2, uint32_t arg3) |
| Function pointer to handle syscalls. | |
Variables | |
| const syscall_handler_t | syscall_registry [SYSCALL_REGISTRY_SIZE] |
Handle syscall exceptions.
Handle syscall exceptions, usually for task control and debugging.
| #define SYSCALL | ( | num, | |
| arg1, | |||
| arg2, | |||
| arg3 ) |
Calls a Syscall with a linux like calling convention.
Calls a Syscall with a linux like calling convention.
| #define SYSCALL_ASSERT | ( | error_name, | |
| line, | |||
| file ) |
| #define SYSCALL_YIELD | ( | ) |
Called for FreeRTOS to task switch the current context.
Called for FreeRTOS to task switch the current context. Use taskYIELD for most applications.
| typedef uint32_t(* syscall_handler_t) (exception_context_t *context, uint32_t arg1, uint32_t arg2, uint32_t arg3) |
Function pointer to handle syscalls.
Function pointer to handle syscalls.
| context | Pointer to the stack frame of the saved context during interrupts. |
| arg1 | First argument passed to syscall |
| arg2 | Second argument passed to syscall |
| arg3 | Third argument passed to syscall |