X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0fd474df7001837bde53da0e42e83081827c9641..bcc25888b3299758ad36721530cca3b899b7166c:/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 index 4bee0b4..d3c9b86 100644 --- a/lunaix-os/arch/x86/syscall_lut.S +++ b/lunaix-os/arch/x86/syscall_lut.S @@ -2,18 +2,18 @@ #include #ifdef CONFIG_ARCH_X86_64 -# define SYSCALL .8byte +# define SYSCALL(x) .8byte x # define SIZE 8 #else +# define SYSCALL(x) .4byte x # define SIZE 4 -# define SYSCALL .4byte #endif .section .data .global __syscall_table __syscall_table: 1: - #include "syscall_nr.inc" + #include 2: .rept __SYSCALL_MAX - (2b - 1b) / SIZE .long 0