hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/x86/include/asm/syscall.h
....@@ -128,6 +128,11 @@
128128 }
129129 }
130130
131
+static inline unsigned long syscall_get_arg0(struct pt_regs *regs)
132
+{
133
+ return regs->di;
134
+}
135
+
131136 static inline void syscall_set_arguments(struct task_struct *task,
132137 struct pt_regs *regs,
133138 const unsigned long *args)