Lines Matching +full:big +full:- +full:endian +full:- +full:regs
1 /* SPDX-License-Identifier: GPL-2.0-only */
12 typedef long (*syscall_fn_t)(const struct pt_regs *regs);
21 struct pt_regs *regs) in syscall_get_nr() argument
23 return regs->syscallno; in syscall_get_nr()
27 struct pt_regs *regs) in syscall_rollback() argument
29 regs->regs[0] = regs->orig_x0; in syscall_rollback()
34 struct pt_regs *regs) in syscall_get_error() argument
36 unsigned long error = regs->regs[0]; in syscall_get_error()
45 struct pt_regs *regs) in syscall_get_return_value() argument
47 return regs->regs[0]; in syscall_get_return_value()
51 struct pt_regs *regs, in syscall_set_return_value() argument
60 regs->regs[0] = val; in syscall_set_return_value()
66 struct pt_regs *regs, in syscall_get_arguments() argument
69 args[0] = regs->orig_x0; in syscall_get_arguments()
72 memcpy(args, ®s->regs[1], 5 * sizeof(args[0])); in syscall_get_arguments()
76 struct pt_regs *regs, in syscall_set_arguments() argument
79 regs->orig_x0 = args[0]; in syscall_set_arguments()
82 memcpy(®s->regs[1], args, 5 * sizeof(args[0])); in syscall_set_arguments()
87 * AArch64 has the same system calls both on little- and big- endian.