MOS Source Code
Loading...
Searching...
No Matches
platform_syscall.h File Reference
#include <mos/mos_global.h>
#include <mos/types.h>
+ Include dependency graph for platform_syscall.h:

Go to the source code of this file.

Macros

#define do_syscall(...)
 

Enumerations

enum  { RISCV64_SYSCALL_SET_TP = 0 }
 

Functions

should_inline reg_t platform_syscall0 (long n)
 
should_inline reg_t platform_syscall1 (long n, long a)
 
should_inline reg_t platform_syscall2 (long n, long a, long b)
 
should_inline reg_t platform_syscall3 (long n, long a, long b, long c)
 
should_inline reg_t platform_syscall4 (long n, long a, long b, long c, long d)
 
should_inline reg_t platform_syscall5 (long n, long a, long b, long c, long d, long e)
 
should_inline reg_t platform_syscall6 (long n, long a, long b, long c, long d, long e, long f)
 

Macro Definition Documentation

◆ do_syscall

#define do_syscall ( ...)
Value:
__asm__ volatile("ecall" : "=r"(a0) : __VA_ARGS__ : "memory")

Definition at line 13 of file platform_syscall.h.

Referenced by platform_syscall0(), platform_syscall1(), platform_syscall2(), platform_syscall3(), platform_syscall4(), platform_syscall5(), and platform_syscall6().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RISCV64_SYSCALL_SET_TP 

Definition at line 8 of file platform_syscall.h.

Function Documentation

◆ platform_syscall0()

◆ platform_syscall1()

◆ platform_syscall2()

◆ platform_syscall3()

◆ platform_syscall4()

should_inline reg_t platform_syscall4 ( long n,
long a,
long b,
long c,
long d )

◆ platform_syscall5()

should_inline reg_t platform_syscall5 ( long n,
long a,
long b,
long c,
long d,
long e )

◆ platform_syscall6()

should_inline reg_t platform_syscall6 ( long n,
long a,
long b,
long c,
long d,
long e,
long f )

Definition at line 73 of file platform_syscall.h.

Referenced by syscall_io_pselect(), and syscall_mmap_file().