X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/cbc8fdbfe473e23e19690204418e19999a9522d1..7bc179c25a1a0b7053959a7b7f2f530da1edbf13:/lunaix-os/arch/x86/syscall_lut.S diff --git a/lunaix-os/arch/x86/syscall_lut.S b/lunaix-os/arch/x86/syscall_lut.S new file mode 100644 index 0000000..4bee0b4 --- /dev/null +++ b/lunaix-os/arch/x86/syscall_lut.S @@ -0,0 +1,20 @@ +#define __ASM__ +#include + +#ifdef CONFIG_ARCH_X86_64 +# define SYSCALL .8byte +# define SIZE 8 +#else +# define SIZE 4 +# define SYSCALL .4byte +#endif + +.section .data + .global __syscall_table + __syscall_table: + 1: + #include "syscall_nr.inc" + 2: + .rept __SYSCALL_MAX - (2b - 1b) / SIZE + .long 0 + .endr \ No newline at end of file