X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ec4ff182252b6d7b3cb81f4fa783c5348a6c30fd..b1644f824d7f4989a94b8a752aadee26cae25069:/lunaix-os/arch/x86/syscall_lut.S?ds=inline 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