diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-10-14 14:34:33 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-10-14 14:34:33 -0400 |
commit | d929b6aeaacbe78cbfef4a80e3eed1bf0464d984 (patch) | |
tree | 5f121a845d616a3926768c2fa1b25c4ae417d9c2 /arch/tile/kernel/sys.c | |
parent | ce0ecc8abfa9904e27a5f3ac4dd83398b134278d (diff) |
arch/tile: Use <asm-generic/syscalls.h>
With this change we now include <asm-generic/syscalls.h> into the "tile"
version of the header. To take full advantage of the prototypes there,
we also change our naming convention for "struct pt_regs *" syscalls so
that, e.g., _sys_execve() is the "true" syscall entry, which sets the
appropriate register to point to the pt_regs before calling sys_execve().
While doing this I realized I no longer needed the fork and vfork
entry point stubs, since those functions aren't in the generic
syscall ABI, so I removed them as well.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/sys.c')
-rw-r--r-- | arch/tile/kernel/sys.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/tile/kernel/sys.c b/arch/tile/kernel/sys.c index f0f87eab8c39..7e764669a022 100644 --- a/arch/tile/kernel/sys.c +++ b/arch/tile/kernel/sys.c | |||
@@ -110,6 +110,15 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, | |||
110 | #define sys_sync_file_range sys_sync_file_range2 | 110 | #define sys_sync_file_range sys_sync_file_range2 |
111 | #endif | 111 | #endif |
112 | 112 | ||
113 | /* Call the trampolines to manage pt_regs where necessary. */ | ||
114 | #define sys_execve _sys_execve | ||
115 | #define sys_sigaltstack _sys_sigaltstack | ||
116 | #define sys_rt_sigreturn _sys_rt_sigreturn | ||
117 | #define sys_clone _sys_clone | ||
118 | #ifndef __tilegx__ | ||
119 | #define sys_cmpxchg_badaddr _sys_cmpxchg_badaddr | ||
120 | #endif | ||
121 | |||
113 | /* | 122 | /* |
114 | * Note that we can't include <linux/unistd.h> here since the header | 123 | * Note that we can't include <linux/unistd.h> here since the header |
115 | * guard will defeat us; <asm/unistd.h> checks for __SYSCALL as well. | 124 | * guard will defeat us; <asm/unistd.h> checks for __SYSCALL as well. |