akaros/kern/arch/x86/ros/syscall.h
<<
>>
Prefs
   1#pragma once
   2
   3#define T_SYSCALL       48
   4
   5#ifndef ROS_KERNEL
   6
   7#define ROS_INC_ARCH_SYSCALL_H
   8
   9#include <ros/arch/syscall64.h>
  10
  11static inline long __ros_arch_syscall(long _a0, long _a1)
  12{
  13        #ifdef CONFIG_SYSCALL_TRAP
  14                return __syscall_trap(_a0, _a1);
  15        #else
  16                return __syscall_sysenter(_a0, _a1);
  17        #endif
  18}
  19
  20#endif /* ifndef ROS_KERNEL */
  21