syscall.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) | syscall.h (910cd32e552ea09caa89cdbe328e468979b030dd) |
---|---|
1/* syscall.h */ 2 3#ifndef _ASM_PARISC_SYSCALL_H_ 4#define _ASM_PARISC_SYSCALL_H_ 5 6#include <uapi/linux/audit.h> 7#include <linux/compat.h> 8#include <linux/err.h> --- 25 unchanged lines hidden (view full) --- 34 case 1: 35 args[0] = regs->gr[26]; 36 break; 37 default: 38 BUG(); 39 } 40} 41 | 1/* syscall.h */ 2 3#ifndef _ASM_PARISC_SYSCALL_H_ 4#define _ASM_PARISC_SYSCALL_H_ 5 6#include <uapi/linux/audit.h> 7#include <linux/compat.h> 8#include <linux/err.h> --- 25 unchanged lines hidden (view full) --- 34 case 1: 35 args[0] = regs->gr[26]; 36 break; 37 default: 38 BUG(); 39 } 40} 41 |
42static inline void syscall_set_return_value(struct task_struct *task, 43 struct pt_regs *regs, 44 int error, long val) 45{ 46 regs->gr[28] = error ? error : val; 47} 48 49static inline void syscall_rollback(struct task_struct *task, 50 struct pt_regs *regs) 51{ 52 /* do nothing */ 53} 54 |
|
42static inline int syscall_get_arch(void) 43{ 44 int arch = AUDIT_ARCH_PARISC; 45#ifdef CONFIG_64BIT 46 if (!is_compat_task()) 47 arch = AUDIT_ARCH_PARISC64; 48#endif 49 return arch; 50} 51#endif /*_ASM_PARISC_SYSCALL_H_*/ | 55static inline int syscall_get_arch(void) 56{ 57 int arch = AUDIT_ARCH_PARISC; 58#ifdef CONFIG_64BIT 59 if (!is_compat_task()) 60 arch = AUDIT_ARCH_PARISC64; 61#endif 62 return arch; 63} 64#endif /*_ASM_PARISC_SYSCALL_H_*/ |