Declaring arch-dependent syscalls for parisc architecture Signed-off-by: Jaswinder Singh <jaswinder@xxxxxxxxxxxxx> --- arch/parisc/kernel/process.c | 1 + arch/parisc/kernel/signal.c | 1 + include/asm-parisc/syscalls.h | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 0 deletions(-) diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index b80e02a..9a73fcd 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -46,6 +46,7 @@ #include <linux/stddef.h> #include <linux/unistd.h> #include <linux/kallsyms.h> +#include <linux/syscalls.h> #include <asm/io.h> #include <asm/asm-offsets.h> diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c index 06213d1..b10cade 100644 --- a/arch/parisc/kernel/signal.c +++ b/arch/parisc/kernel/signal.c @@ -25,6 +25,7 @@ #include <linux/stddef.h> #include <linux/compat.h> #include <linux/elf.h> +#include <linux/syscalls.h> #include <asm/ucontext.h> #include <asm/rt_sigframe.h> #include <asm/uaccess.h> diff --git a/include/asm-parisc/syscalls.h b/include/asm-parisc/syscalls.h index e69de29..0de8837 100644 --- a/include/asm-parisc/syscalls.h +++ b/include/asm-parisc/syscalls.h @@ -0,0 +1,36 @@ +/* + * syscalls.h - Linux syscall interfaces (arch-specific) + * + * Copyright (c) 2008 Jaswinder Singh + * + * This file is released under the GPLv2. + * See the file COPYING for more details. + * + * Please do not call me directly, include linux/syscalls.h + */ + +#ifndef _ASM_PARISC_SYSCALLS_H +#define _ASM_PARISC_SYSCALLS_H + +/* kernel/process.c */ +int sys_clone(unsigned long, unsigned long, struct pt_regs *); +int sys_vfork(struct pt_regs *); +asmlinkage int sys_execve(struct pt_regs *); + +/* kernel/signal.c */ +void sys_rt_sigreturn(struct pt_regs *, int); + +/* kernel/sys_parisc.c */ +asmlinkage unsigned long sys_mmap2(unsigned long, unsigned long, + unsigned long, unsigned long, + unsigned long, unsigned long); +asmlinkage unsigned long sys_mmap(unsigned long, unsigned long, + unsigned long, unsigned long, + unsigned long, unsigned long); +#ifdef CONFIG_64BIT +asmlinkage long sys_truncate64(const char __user *, unsigned long); +asmlinkage long sys_ftruncate64(unsigned int, unsigned long); +asmlinkage long sys_fcntl64(unsigned int, unsigned int, unsigned long); +#endif + +#endif /* _ASM_PARISC_SYSCALLS_H */ -- 1.5.5.1 -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ