FreeNOS
ARMTraps.h File Reference
#include <Types.h>

Go to the source code of this file.

Functions

ARM Kernel Traps

ARM specific software interrupts.

These functions are called by the user program to invoke the kernel APIs, also known as system calls.

On ARM, there are no machine-specific input operand constraints to specify registers for inline assembly. Therefore, we need to use Local Register Variables syntax to guarantee that specific registers are used.

See also
https://gcc.gnu.org/onlinedocs/gcc/Local-Register-Variables.html#Local-Register-Variables
ulong trapKernel1 (ulong api, ulong arg1)
 Perform a kernel trap with 1 argument. More...
 
ulong trapKernel2 (ulong api, ulong arg1, ulong arg2)
 Perform a kernel trap with 2 arguments. More...
 
ulong trapKernel3 (ulong api, ulong arg1, ulong arg2, ulong arg3)
 Perform a kernel trap with 3 arguments. More...
 
ulong trapKernel4 (ulong api, ulong arg1, ulong arg2, ulong arg3, ulong arg4)
 Perform a kernel trap with 4 arguments. More...
 
ulong trapKernel5 (ulong api, ulong arg1, ulong arg2, ulong arg3, ulong arg4, ulong arg5)
 Perform a kernel trap with 5 arguments. More...