My Kernel
v0.1.0
syscalls.h
Go to the documentation of this file.
1
19
#ifndef KERNEL_SYSCALLS_H
20
#define KERNEL_SYSCALLS_H
21
22
#include <kernel/types.h>
23
24
#include <dailyrun/syscalls.h>
25
26
#include <utils/macro.h>
27
28
#include <stddef.h>
29
#include <sys/stat.h>
30
#include <sys/signal.h>
31
32
typedef
struct
syscall_args {
33
u32 nr;
34
u32 arg1, arg2, arg3, arg4, arg5, arg6;
35
} syscall_args_t;
36
37
/* SYSCALLS HANDLER */
38
39
#define SYSCALL_FUNCTION(name, vector, argc, type, ret_type, ...) \
40
ret_type CONCAT(sys_, name)(__VA_ARGS__);
41
DEFINE_SYSCALLS(SYSCALL_FUNCTION);
42
43
#endif
/* KERNEL_SYSCALLS_H */
include
kernel
syscalls.h
Generated by
1.9.5