From nobody Mon Oct 02 22:31:17 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RzwfG0SGrz4wZ6W; Mon, 2 Oct 2023 22:31:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RzwfF5nx8z3Vgh; Mon, 2 Oct 2023 22:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696285877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rl9f6RVEy4dAdE4u2aH4iutMs3zv2ePOnEMSLXO36P4=; b=Y+AZf23KXZ1SCwm7o3mIMBMsgiJawfgZV48LF7kkliP2Nf9XMPY50Vs1dtznmv82B130x6 u34l6Sq4ZUS57LILUXPnjCzIE1qEoSSJiD/Vat+mDHNBqpENEHbs8wCa8gqjixIf1g7aha CEEtjDhmKPZnlN+BN9bWoSyIe41/iQHuZZXdlFg544tb4xc4zjnpnB0vuhtnZa2hxsoVmh vbfd4llKgvYT2GHf0IRh0YENdbG+eddf3+Fmc+hBZOO2z2n0KcUnazThm7AOBWbDnaDy0p FXLWGKGltW28mmhk/fpon596tpNQClmZnhrLm+7Re3d69A/43cK7LIqPKEfK/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696285877; a=rsa-sha256; cv=none; b=JqeoNIa1X2vX9JjdFweHZT7QuiaKmwbASys/bwEFz+tnL2wFyR6OOxJRni14adEjBNc1Wl wmPQo0mV8Vm6r2SRxZUZ0eAhqn2FSoZLlvwWoUu+aKvRJAMzdAOLwz7FWYa8Yk9WbIuEuv hY85x9uYD0gbYIWWX0wZ2RK8/JnaHBAL/C5tNzVyGnovPNgdDoLJPRLqvVtt8d9+gL3oz+ SUJms4RIZDIjW80Dg0r1BaXRBZVKyDbI0DZV3UjY4LWnNSaJNWpbQHYaxcBPwDlfvcJG+P YgoBxhp9iE5FioMfbXCm6v90euw3TBDitfd/RPCa9TCH26FzTkwsW426KjrYeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696285877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Rl9f6RVEy4dAdE4u2aH4iutMs3zv2ePOnEMSLXO36P4=; b=cCbGn7hxcVEYchOqHDDQva8XL/TZrdfSjySgeLzW8kjc3TVJA2vCJnS30JDyDkaOUHNOZL uP2cBoppcN+UOxTZMT81anMre0MF+O6gUwJ8tFl4qxqUR65NfL/Cuj7Xva334ejgjvlHoo 6EwlM8e4sys9EhDq7rePLjWWVEU9pJCXweday/5jRMk2eiLUEiSGJSd5r5NpT7CSOecOAL CgG32Mt7uBbROFiu7WEiZEFQ94Ia0J6T6D06G1TWXDFTSk5/A/S+g3DEmLD8UWp21sD7nJ NE5lMuepZ8GrzgF4zHwvX5ZKokXWMFoRHuS982O/M91Ogjfj41IiOAuZp0Li1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RzwfF4rqVzW9t; Mon, 2 Oct 2023 22:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 392MVHBr098914; Mon, 2 Oct 2023 22:31:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 392MVHnJ098911; Mon, 2 Oct 2023 22:31:17 GMT (envelope-from git) Date: Mon, 2 Oct 2023 22:31:17 GMT Message-Id: <202310022231.392MVHnJ098911@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6b3bb233cd0c - main - amd64 cpu_fetch_syscall_args_fallback(): fix whitespace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b3bb233cd0c3eeeb70e388a62b142b4f22b62b2 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6b3bb233cd0c3eeeb70e388a62b142b4f22b62b2 commit 6b3bb233cd0c3eeeb70e388a62b142b4f22b62b2 Author: Konstantin Belousov AuthorDate: 2023-09-26 09:20:30 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-02 22:30:52 +0000 amd64 cpu_fetch_syscall_args_fallback(): fix whitespace Reviewed by: dchagin, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D41976 --- sys/amd64/amd64/trap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 4d5887369207..ef38c0789636 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -1032,10 +1032,10 @@ cpu_fetch_syscall_args_fallback(struct thread *td, struct syscall_args *sa) regcnt--; } - if (sa->code >= p->p_sysent->sv_size) - sa->callp = &p->p_sysent->sv_table[0]; - else - sa->callp = &p->p_sysent->sv_table[sa->code]; + if (sa->code >= p->p_sysent->sv_size) + sa->callp = &p->p_sysent->sv_table[0]; + else + sa->callp = &p->p_sysent->sv_table[sa->code]; KASSERT(sa->callp->sy_narg <= nitems(sa->args), ("Too many syscall arguments!")); @@ -1045,7 +1045,7 @@ cpu_fetch_syscall_args_fallback(struct thread *td, struct syscall_args *sa) if (sa->callp->sy_narg > regcnt) { params = (caddr_t)frame->tf_rsp + sizeof(register_t); error = copyin(params, &sa->args[regcnt], - (sa->callp->sy_narg - regcnt) * sizeof(sa->args[0])); + (sa->callp->sy_narg - regcnt) * sizeof(sa->args[0])); if (__predict_false(error != 0)) return (error); }