hc
2024-11-01 7e970c18f85f99acc678d90128b6e01dce1bf273
kernel/arch/arm64/include/asm/syscall.h
....@@ -73,6 +73,11 @@
7373 memcpy(args, &regs->regs[1], 5 * sizeof(args[0]));
7474 }
7575
76
+static inline unsigned long syscall_get_arg0(struct pt_regs *regs)
77
+{
78
+ return regs->orig_x0;
79
+}
80
+
7681 static inline void syscall_set_arguments(struct task_struct *task,
7782 struct pt_regs *regs,
7883 const unsigned long *args)