move msi-related functionality to generic isrm
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall_utils.h
1 #ifndef __LUNAIX_SYSCALL_UTILS_H
2 #define __LUNAIX_SYSCALL_UTILS_H
3
4 #include <lunaix/process.h>
5 #include <lunaix/syscall.h>
6 #include <sys/syscall_utils.h>
7
8 #define DO_STATUS(errno)    SYSCALL_ESTATUS(syscall_result(errno))
9 #define DO_STATUS_OR_RETURN(errno) \
10         ({ errno < 0 ? DO_STATUS(errno) : errno; })
11
12 #endif /* __LUNAIX_SYSCALL_UTILS_H */