amd64: syscall path bcopy -> memcpy

This commit is contained in:
Mateusz Guzik 2018-05-04 22:41:12 +00:00
parent 0bb311526d
commit ac7edb45e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333266

View File

@ -908,7 +908,7 @@ cpu_fetch_syscall_args(struct thread *td)
error = 0;
argp = &frame->tf_rdi;
argp += reg;
bcopy(argp, sa->args, sizeof(sa->args[0]) * 6);
memcpy(sa->args, argp, sizeof(sa->args[0]) * 6);
if (sa->narg > regcnt) {
KASSERT(params != NULL, ("copyin args with no params!"));
error = copyin(params, &sa->args[regcnt],