C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
syscall.h
1#pragma once
2
3#include <kernel/syscall.h>
4
5struct Syscall_Entry_t * os_syscalls_start(void);
6struct Syscall_Entry_t * os_syscalls_end(void);
7
9
10#define REGISTER_SYSCALLS(...) \
11static struct Syscall_Entry_t syscalls[] = { __VA_ARGS__, { 0, 0} };\
12__attribute__((constructor)) void register_syscalls_ ## __COUNTER__(void)\
13{\
14 cmrx_posix_register_syscalls(syscalls);\
15}
static struct Syscall_Entry_t syscalls[256]
List of registered syscalls.
Definition posix.c:62
void cmrx_posix_register_syscalls(struct Syscall_Entry_t *syscalls)
Register syscall with kernel.
Definition posix.c:292
Entry in syscall table.
Definition syscall.h:31