C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
syscall.h
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5
23#define SYSCALL_DEFINITION __attribute__((section(".syscall"), used)) const
24
25typedef int (* Syscall_Handler_t)(unsigned long, unsigned long, unsigned long, unsigned long);
26
40
41int os_system_call_init(void);
42
56int os_system_call(unsigned long arg0, unsigned long arg1, unsigned long arg2, unsigned long arg3, uint8_t syscall_id);
57
int os_system_call(unsigned long arg0, unsigned long arg1, unsigned long arg2, unsigned long arg3, uint8_t syscall_id)
Find and execute a system call.
Definition syscall.c:73
int os_system_call_init(void)
Definition syscall.c:59
int(* Syscall_Handler_t)(unsigned long, unsigned long, unsigned long, unsigned long)
Definition syscall.h:25
Entry in syscall table.
Definition syscall.h:31
uint8_t id
Syscall ID.
Definition syscall.h:34
Syscall_Handler_t handler
Address of handler function.
Definition syscall.h:38