C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
System calls implementation

Description

Functions

void SVC_Handler (uint32_t arg0, uint32_t arg1, uint32_t arg2, uint32_t arg3)
 ARM-specific entrypoint for system call handlers.
 

Function Documentation

◆ SVC_Handler()

void SVC_Handler ( uint32_t  arg0,
uint32_t  arg1,
uint32_t  arg2,
uint32_t  arg3 
)

ARM-specific entrypoint for system call handlers.

This routine is common entrypoint for all syscall routines. It decodes the syscall ID requested by userspace application and calls generic method to service the system call. It is callable by executing the SVC instruction. Code of SVC_Handler will retrieve the requested SVC ID and let generic machinery to execute specified system call.

Parameters
arg0syscall argument
arg1syscall argument
arg2syscall argument
arg3syscall argument