hc
2024-11-01 7e970c18f85f99acc678d90128b6e01dce1bf273
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)