ptrace.h (0898782247ae533d1f4e47a06bc5d4870931b284) | ptrace.h (73d6eb48d26930f0cbdc8bf1ccb0ad964e7d2b90) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * S390 version 4 * Copyright IBM Corp. 1999, 2000 5 * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) 6 */ 7#ifndef _S390_PTRACE_H 8#define _S390_PTRACE_H --- 170 unchanged lines hidden (view full) --- 179unsigned long regs_get_register(struct pt_regs *regs, unsigned int offset); 180unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n); 181 182static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) 183{ 184 return regs->gprs[15]; 185} 186 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * S390 version 4 * Copyright IBM Corp. 1999, 2000 5 * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) 6 */ 7#ifndef _S390_PTRACE_H 8#define _S390_PTRACE_H --- 170 unchanged lines hidden (view full) --- 179unsigned long regs_get_register(struct pt_regs *regs, unsigned int offset); 180unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n); 181 182static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) 183{ 184 return regs->gprs[15]; 185} 186 |
187static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc) 188{ 189 regs->gprs[2] = rc; 190} 191 |
|
187#endif /* __ASSEMBLY__ */ 188#endif /* _S390_PTRACE_H */ | 192#endif /* __ASSEMBLY__ */ 193#endif /* _S390_PTRACE_H */ |