Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
syscall.h File Reference

RISCV specific syscall header. More...

#include <zephyr/types.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define RV_ECALL_RUNTIME_EXCEPT   0
 
#define RV_ECALL_IRQ_OFFLOAD   1
 
#define RV_ECALL_SCHEDULE   2
 

Functions

static uintptr_t arch_syscall_invoke6 (uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr_t arg6, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke5 (uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke4 (uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke3 (uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke2 (uintptr_t arg1, uintptr_t arg2, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke1 (uintptr_t arg1, uintptr_t call_id)
 
static uintptr_t arch_syscall_invoke0 (uintptr_t call_id)
 
static bool arch_is_user_context (void)
 

Detailed Description

RISCV specific syscall header.

This header contains the RISCV specific syscall interface. It is included by the syscall interface architecture-abstraction header (include/arch/syscall.h)

Macro Definition Documentation

◆ RV_ECALL_IRQ_OFFLOAD

#define RV_ECALL_IRQ_OFFLOAD   1

◆ RV_ECALL_RUNTIME_EXCEPT

#define RV_ECALL_RUNTIME_EXCEPT   0

◆ RV_ECALL_SCHEDULE

#define RV_ECALL_SCHEDULE   2

Function Documentation

◆ arch_is_user_context()

static bool arch_is_user_context ( void )
inlinestatic

◆ arch_syscall_invoke0()

static uintptr_t arch_syscall_invoke0 ( uintptr_t call_id)
inlinestatic

◆ arch_syscall_invoke1()

static uintptr_t arch_syscall_invoke1 ( uintptr_t arg1,
uintptr_t call_id )
inlinestatic

◆ arch_syscall_invoke2()

static uintptr_t arch_syscall_invoke2 ( uintptr_t arg1,
uintptr_t arg2,
uintptr_t call_id )
inlinestatic

◆ arch_syscall_invoke3()

static uintptr_t arch_syscall_invoke3 ( uintptr_t arg1,
uintptr_t arg2,
uintptr_t arg3,
uintptr_t call_id )
inlinestatic

◆ arch_syscall_invoke4()

static uintptr_t arch_syscall_invoke4 ( uintptr_t arg1,
uintptr_t arg2,
uintptr_t arg3,
uintptr_t arg4,
uintptr_t call_id )
inlinestatic

◆ arch_syscall_invoke5()

static uintptr_t arch_syscall_invoke5 ( uintptr_t arg1,
uintptr_t arg2,
uintptr_t arg3,
uintptr_t arg4,
uintptr_t arg5,
uintptr_t call_id )
inlinestatic

◆ arch_syscall_invoke6()

static uintptr_t arch_syscall_invoke6 ( uintptr_t arg1,
uintptr_t arg2,
uintptr_t arg3,
uintptr_t arg4,
uintptr_t arg5,
uintptr_t arg6,
uintptr_t call_id )
inlinestatic