00001
00007
00008 #ifndef __L4SYS__INCLUDE__ARCH_X86__L4API_L4V2__SYSCALLS_H__
00009 #define __L4SYS__INCLUDE__ARCH_X86__L4API_L4V2__SYSCALLS_H__
00010
00011 #include <l4/sys/syscalls_gen.h>
00012
00013 #include <l4/sys/syscall-invoke.h>
00014
00015 #define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
00016
00017 #ifdef PROFILE
00018 #include "syscalls-l42-profile.h"
00019 #else
00020 # if GCC_VERSION < 302
00021 # error gcc >= 3.0.2 required
00022 # else
00023 # ifdef __PIC__
00024 # include "syscalls-l42-gcc3-pic.h"
00025 # else
00026 # include "syscalls-l42-gcc3-nopic.h"
00027 # endif
00028 # endif
00029
00030
00031
00032 #endif
00033
00034 L4_INLINE void *
00035 l4_kernel_interface(void)
00036 {
00037 void *ret;
00038 asm (" lock; nop " : "=a"(ret) );
00039 return ret;
00040 }
00041
00042 #include <l4/sys/syscalls-impl.h>
00043
00044 #endif