fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / arch / x86 / syscall_lut.S
1 #define __ASM__
2 #include <lunaix/syscall.h>
3
4 #ifdef CONFIG_ARCH_X86_64
5 #   define SYSCALL(x)     .8byte x
6 #   define SIZE    8
7 #else
8 #   define SYSCALL(x)     .4byte x
9 #   define SIZE    4
10 #endif
11
12 .section .data
13     .global __syscall_table
14     __syscall_table:
15         1:
16         #include <asm/syscall_nr.inc>
17         2:
18         .rept __SYSCALL_MAX - (2b - 1b) / SIZE
19             .long 0
20         .endr