diff options
author | Jaswinder Singh <jaswinder@infradead.org> | 2008-07-25 04:18:38 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 07:32:38 -0500 |
commit | c80ce2d52b1d11ccb29eddb3fc1345cd49ccfc5a (patch) | |
tree | cc0348e871a72bcab8128a85ee1d3a2e3b5966a4 | |
parent | 1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff) |
avr32: Introducing asm/syscalls.h
Declaring arch-dependent syscalls for avr32 architecture
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-rw-r--r-- | arch/avr32/kernel/process.c | 1 | ||||
-rw-r--r-- | arch/avr32/kernel/signal.c | 1 | ||||
-rw-r--r-- | arch/avr32/kernel/sys_avr32.c | 1 | ||||
-rw-r--r-- | arch/avr32/mm/cache.c | 1 | ||||
-rw-r--r-- | include/asm-avr32/syscalls.h | 39 |
5 files changed, 43 insertions, 0 deletions
diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c index 134d5302b6dd..43ae555ecb33 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <asm/sysreg.h> | 19 | #include <asm/sysreg.h> |
20 | #include <asm/ocd.h> | 20 | #include <asm/ocd.h> |
21 | #include <asm/syscalls.h> | ||
21 | 22 | ||
22 | #include <mach/pm.h> | 23 | #include <mach/pm.h> |
23 | 24 | ||
diff --git a/arch/avr32/kernel/signal.c b/arch/avr32/kernel/signal.c index c5b11f9067f1..803d7be0938f 100644 --- a/arch/avr32/kernel/signal.c +++ b/arch/avr32/kernel/signal.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #include <asm/uaccess.h> | 20 | #include <asm/uaccess.h> |
21 | #include <asm/ucontext.h> | 21 | #include <asm/ucontext.h> |
22 | #include <asm/syscalls.h> | ||
22 | 23 | ||
23 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) | 24 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) |
24 | 25 | ||
diff --git a/arch/avr32/kernel/sys_avr32.c b/arch/avr32/kernel/sys_avr32.c index 8e8911e55c8f..5d2daeaf356f 100644 --- a/arch/avr32/kernel/sys_avr32.c +++ b/arch/avr32/kernel/sys_avr32.c | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #include <asm/mman.h> | 14 | #include <asm/mman.h> |
15 | #include <asm/uaccess.h> | 15 | #include <asm/uaccess.h> |
16 | #include <asm/syscalls.h> | ||
16 | 17 | ||
17 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | 18 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, |
18 | unsigned long prot, unsigned long flags, | 19 | unsigned long prot, unsigned long flags, |
diff --git a/arch/avr32/mm/cache.c b/arch/avr32/mm/cache.c index 15a4e5e142c1..24a74d1ca7d9 100644 --- a/arch/avr32/mm/cache.c +++ b/arch/avr32/mm/cache.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/cachectl.h> | 13 | #include <asm/cachectl.h> |
14 | #include <asm/processor.h> | 14 | #include <asm/processor.h> |
15 | #include <asm/uaccess.h> | 15 | #include <asm/uaccess.h> |
16 | #include <asm/syscalls.h> | ||
16 | 17 | ||
17 | /* | 18 | /* |
18 | * If you attempt to flush anything more than this, you need superuser | 19 | * If you attempt to flush anything more than this, you need superuser |
diff --git a/include/asm-avr32/syscalls.h b/include/asm-avr32/syscalls.h new file mode 100644 index 000000000000..483d666c27c0 --- /dev/null +++ b/include/asm-avr32/syscalls.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * syscalls.h - Linux syscall interfaces (arch-specific) | ||
3 | * | ||
4 | * Copyright (c) 2008 Jaswinder Singh | ||
5 | * | ||
6 | * This file is released under the GPLv2. | ||
7 | * See the file COPYING for more details. | ||
8 | */ | ||
9 | |||
10 | #ifndef _ASM_AVR32_SYSCALLS_H | ||
11 | #define _ASM_AVR32_SYSCALLS_H | ||
12 | |||
13 | #include <linux/compiler.h> | ||
14 | #include <linux/linkage.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/signal.h> | ||
17 | |||
18 | /* kernel/process.c */ | ||
19 | asmlinkage int sys_fork(struct pt_regs *); | ||
20 | asmlinkage int sys_clone(unsigned long, unsigned long, | ||
21 | unsigned long, unsigned long, | ||
22 | struct pt_regs *); | ||
23 | asmlinkage int sys_vfork(struct pt_regs *); | ||
24 | asmlinkage int sys_execve(char __user *, char __user *__user *, | ||
25 | char __user *__user *, struct pt_regs *); | ||
26 | |||
27 | /* kernel/signal.c */ | ||
28 | asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *, | ||
29 | struct pt_regs *); | ||
30 | asmlinkage int sys_rt_sigreturn(struct pt_regs *); | ||
31 | |||
32 | /* kernel/sys_avr32.c */ | ||
33 | asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long, | ||
34 | unsigned long, unsigned long, off_t); | ||
35 | |||
36 | /* mm/cache.c */ | ||
37 | asmlinkage int sys_cacheflush(int, void __user *, size_t); | ||
38 | |||
39 | #endif /* _ASM_AVR32_SYSCALLS_H */ | ||