Path: blob/master/arch/um/sys-ppc/shared/sysdep/syscalls.h
10820 views
/*1* Copyright (C) 2000 Jeff Dike ([email protected])2* Licensed under the GPL3*/45typedef long syscall_handler_t(unsigned long arg1, unsigned long arg2,6unsigned long arg3, unsigned long arg4,7unsigned long arg5, unsigned long arg6);89#define EXECUTE_SYSCALL(syscall, regs) \10(*sys_call_table[syscall])(UM_SYSCALL_ARG1(®s), \11UM_SYSCALL_ARG2(®s), \12UM_SYSCALL_ARG3(®s), \13UM_SYSCALL_ARG4(®s), \14UM_SYSCALL_ARG5(®s), \15UM_SYSCALL_ARG6(®s))1617extern syscall_handler_t sys_mincore;18extern syscall_handler_t sys_madvise;1920/* old_mmap needs the correct prototype since syscall_kern.c includes21* this file.22*/23int old_mmap(unsigned long addr, unsigned long len,24unsigned long prot, unsigned long flags,25unsigned long fd, unsigned long offset);2627#define ARCH_SYSCALLS \28[ __NR_modify_ldt ] = sys_ni_syscall, \29[ __NR_pciconfig_read ] = sys_ni_syscall, \30[ __NR_pciconfig_write ] = sys_ni_syscall, \31[ __NR_pciconfig_iobase ] = sys_ni_syscall, \32[ __NR_pivot_root ] = sys_ni_syscall, \33[ __NR_multiplexer ] = sys_ni_syscall, \34[ __NR_mmap ] = old_mmap, \35[ __NR_madvise ] = sys_madvise, \36[ __NR_mincore ] = sys_mincore, \37[ __NR_iopl ] = (syscall_handler_t *) sys_ni_syscall, \38[ __NR_utimes ] = (syscall_handler_t *) sys_utimes, \39[ __NR_fadvise64 ] = (syscall_handler_t *) sys_fadvise64,4041#define LAST_ARCH_SYSCALL __NR_fadvise6442434445