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>
This commit is contained in:
@@ -66,10 +66,10 @@ static noinline void force_sig_info_fault(int si_signo, int si_code,
|
||||
#ifndef __tilegx__
|
||||
/*
|
||||
* Synthesize the fault a PL0 process would get by doing a word-load of
|
||||
* an unaligned address or a high kernel address. Called indirectly
|
||||
* from sys_cmpxchg() in kernel/intvec.S.
|
||||
* an unaligned address or a high kernel address.
|
||||
*/
|
||||
int _sys_cmpxchg_badaddr(unsigned long address, struct pt_regs *regs)
|
||||
SYSCALL_DEFINE2(cmpxchg_badaddr, unsigned long, address,
|
||||
struct pt_regs *, regs)
|
||||
{
|
||||
if (address >= PAGE_OFFSET)
|
||||
force_sig_info_fault(SIGSEGV, SEGV_MAPERR, address,
|
||||
|
Reference in New Issue
Block a user