x86: reorganizes IRQ/trap vectors (XCC)
[akaros.git] / kern / arch / x86 / ros / syscall.h
1 #ifndef ROS_INC_ARCH_SYSCALL_H
2 #define ROS_INC_ARCH_SYSCALL_H
3
4 #define T_SYSCALL       48
5
6 #ifndef ROS_KERNEL
7
8 #ifdef __x86_64__
9 #include <ros/arch/syscall64.h>
10 #else
11 #include <ros/arch/syscall32.h>
12 #endif
13
14 static inline long __ros_arch_syscall(long _a0, long _a1)
15 {
16         #ifdef CONFIG_SYSCALL_TRAP
17                 return __syscall_trap(_a0, _a1);
18         #else
19                 return __syscall_sysenter(_a0, _a1);
20         #endif
21 }
22
23 #endif /* ifndef ROS_KERNEL */
24
25 #endif /* ROS_INC_ARCH_SYSCALL_H */