Declaring arch-dependent syscalls for blackfin architecture Signed-off-by: Jaswinder Singh <jaswinder@xxxxxxxxxxxxx> --- arch/blackfin/kernel/process.c | 1 + include/asm-blackfin/syscalls.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 53c2cd2..6ca088c 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c @@ -36,6 +36,7 @@ #include <linux/tick.h> #include <linux/fs.h> #include <linux/err.h> +#include <linux/syscalls.h> #include <asm/blackfin.h> #include <asm/fixed_code.h> diff --git a/include/asm-blackfin/syscalls.h b/include/asm-blackfin/syscalls.h index e69de29..73927f5 100644 --- a/include/asm-blackfin/syscalls.h +++ b/include/asm-blackfin/syscalls.h @@ -0,0 +1,29 @@ +/* + * 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_BLACKFIN_SYSCALLS_H +#define _ASM_BLACKFIN_SYSCALLS_H + +/* kernel/process.c */ +asmlinkage int sys_execve(char __user *, char __user * __user *, + char __user * __user *); + +/* kernel/signal.c */ +asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *); + +/* kernel/sys_bfin.c */ +asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long, + unsigned long, unsigned long, unsigned long); +asmlinkage void *sys_sram_alloc(size_t, unsigned long); +asmlinkage int sys_sram_free(const void *); +asmlinkage void *sys_dma_memcpy(void *, const void *, size_t); + +#endif /* _ASM_BLACKFIN_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