Date: Tue, 11 Feb 2020 18:15:23 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357767 - head/sys/amd64/amd64 Message-ID: <202002111815.01BIFNQF072440@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Feb 11 18:15:23 2020 New Revision: 357767 URL: https://svnweb.freebsd.org/changeset/base/357767 Log: amd64: remove redundant sa->code assignment from cpu_fetch_syscall_args_fallback It is already set in the only caller. Modified: head/sys/amd64/amd64/trap.c Modified: head/sys/amd64/amd64/trap.c ============================================================================== --- head/sys/amd64/amd64/trap.c Tue Feb 11 18:13:53 2020 (r357766) +++ head/sys/amd64/amd64/trap.c Tue Feb 11 18:15:23 2020 (r357767) @@ -993,8 +993,6 @@ cpu_fetch_syscall_args_fallback(struct thread *td, str reg = 0; regcnt = NARGREGS; - sa->code = frame->tf_rax; - if (sa->code == SYS_syscall || sa->code == SYS___syscall) { sa->code = frame->tf_rdi; reg++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002111815.01BIFNQF072440>