svn commit: r357767 - head/sys/amd64/amd64
Mateusz Guzik
mjg at FreeBSD.org
Tue Feb 11 18:15:24 UTC 2020
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++;
More information about the svn-src-all
mailing list