diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-31 07:55:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-31 07:55:14 -0500 |
commit | c05c2ec96bb8b7310da1055c7b9d786a3ec6dc0c (patch) | |
tree | 462696ac1f6dda50a8f49d5d5ac2a93f8a16adec /arch/parisc/include/asm/syscall.h | |
parent | e9dcfaff0105045d6bbacb7620ee13f1976ecf07 (diff) | |
parent | 910cd32e552ea09caa89cdbe328e468979b030dd (diff) |
Merge branch 'parisc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller:
"Fix seccomp filter support and SIGSYS signals on compat kernel.
Both patches are tagged for v4.5 stable kernel"
* 'parisc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
parisc: Fix and enable seccomp filter support
parisc: Fix SIGSYS signals in compat case
Diffstat (limited to 'arch/parisc/include/asm/syscall.h')
-rw-r--r-- | arch/parisc/include/asm/syscall.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/syscall.h b/arch/parisc/include/asm/syscall.h index a5eba95d87fe..637ce8d6f375 100644 --- a/arch/parisc/include/asm/syscall.h +++ b/arch/parisc/include/asm/syscall.h @@ -39,6 +39,19 @@ static inline void syscall_get_arguments(struct task_struct *tsk, } } +static inline void syscall_set_return_value(struct task_struct *task, + struct pt_regs *regs, + int error, long val) +{ + regs->gr[28] = error ? error : val; +} + +static inline void syscall_rollback(struct task_struct *task, + struct pt_regs *regs) +{ + /* do nothing */ +} + static inline int syscall_get_arch(void) { int arch = AUDIT_ARCH_PARISC; |