Revert "x86/syscall: Avoid memcpy() for ia32 syscall_get_arguments()"

This reverts commit 23a2b0d100.
This commit is contained in:
Ksawlii 2024-11-24 00:23:07 +01:00
parent 2aa1f13a96
commit f6fecb09e8

View file

@ -85,12 +85,7 @@ static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs, struct pt_regs *regs,
unsigned long *args) unsigned long *args)
{ {
args[0] = regs->bx; memcpy(args, &regs->bx, 6 * sizeof(args[0]));
args[1] = regs->cx;
args[2] = regs->dx;
args[3] = regs->si;
args[4] = regs->di;
args[5] = regs->bp;
} }
static inline void syscall_set_arguments(struct task_struct *task, static inline void syscall_set_arguments(struct task_struct *task,