Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * System call table for UML/x86-64, copied from arch/x86/kernel/syscall_*.c
0004  * with some changes for UML.
0005  */
0006 
0007 #include <linux/linkage.h>
0008 #include <linux/sys.h>
0009 #include <linux/cache.h>
0010 #include <asm/syscall.h>
0011 
0012 /*
0013  * Below you can see, in terms of #define's, the differences between the x86-64
0014  * and the UML syscall table.
0015  */
0016 
0017 /* Not going to be implemented by UML, since we have no hardware. */
0018 #define sys_iopl sys_ni_syscall
0019 #define sys_ioperm sys_ni_syscall
0020 
0021 #define __SYSCALL(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
0022 #include <asm/syscalls_64.h>
0023 
0024 #undef __SYSCALL
0025 #define __SYSCALL(nr, sym) sym,
0026 
0027 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
0028 
0029 const sys_call_ptr_t sys_call_table[] ____cacheline_aligned = {
0030 #include <asm/syscalls_64.h>
0031 };
0032 
0033 int syscall_table_size = sizeof(sys_call_table);