From nobody Fri Feb 02 17:10:18 2024 X-Original-To: dev-commits-src-main@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 4TRMj66pHRz5970f; Fri, 2 Feb 2024 17:10: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 4TRMj66Kjfz4XCd; Fri, 2 Feb 2024 17:10:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706893818; 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=GqXHfoPC95r+ESpkudUU+hgQwL0/DGzB8rQkT3Pk/ow=; b=IdauPojJ2ZH0/JaGXhfYT97LT99J+TRe5USEV1bLLXAUhQ3Uhrlh0KERDQOzDgR1DPTom7 PUq2bLU+Ci+Ge/ubAK6Z8MmjroRPqS4IK5ZXeweKGRqHDezS3DFCEquuTrhYbvY4e3ezkN NZGXiHmhIJDdavEvah+IlrCV8mCsdh+xt9E68SoCNDNgM1iFoX70XS+q/LULByHA7hP0uV nA0QsICylggI7he1z6pMkwR7j6UK+1PAaRB6goL8ZOkw9Jq7RuDi/QZoxAvNqG/3ne3SHR g+OaekWHBIKF2+SaO8E+SwGIXD++3n5eEexzy5pKMR9Kq16Pa6hHGUoKo06n1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706893818; 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=GqXHfoPC95r+ESpkudUU+hgQwL0/DGzB8rQkT3Pk/ow=; b=jpDaZfJdk1Nwd9I8Sb52PcAOPGK/gJ7u6/rLe3C/APRzfgMb80Ce83MSVlxa4QLQWkAtMh htdHR4SaeDF8VucFSVcwgYXJR7moGbCnlXcKBixFtK1AxQo+TlEjm2Qvz7dotEEDAc3EUV 0GBCDXV4E/G79jF6mMV7sn1sici47FWbBRvkjJ/3BwU6uTYU9EpmcgDihIP9SkC0zDVgc6 iD88RqjFHj58oqGsEsysOHJZKBcHalZJd1UTuN/Eg6fAIh2ZZ/+6Fm0NLZpmtweiTiGEJA Q6wPF9I75HQypShTk/oQi+Nm/vaxmivR08nFR/LBrBEScArxMlewh8G6q46uoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706893818; a=rsa-sha256; cv=none; b=ixdDj/t3nGeshHHI1uE5v8XvsdQMB/yqQ/4A2SefPvmdHuwF4rdvP8ItWrZ4hkxlvbltTS n5zT1vXGNmYOtla7hk1yWzBviJbecIK/hMqQ5t18wUu60tewSJWwt35d7bmmh+EZpVPi0l JihZEiAqIU3CA49V4ANfkVs3pQlphe+2yUNteeERc1jqXB8Ztuy3P8EI1lLQR2zhTxrZ1z XvE8Trz6VbZvxrIpIR6YagHUzO17JoshTpuE8qISrRkA5fKyJOnfTyOQ/hzkCDOpWI+x0W 9boBVnAiVxr6YIOUZnO2iu8SBR6ouGN1QvI9qOR3/pb/nr/YNn84AHOIKjH+6g== 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 4TRMj65NlGzfT6; Fri, 2 Feb 2024 17:10:18 +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 412HAIWG061497; Fri, 2 Feb 2024 17:10:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 412HAIBP061494; Fri, 2 Feb 2024 17:10:18 GMT (envelope-from git) Date: Fri, 2 Feb 2024 17:10:18 GMT Message-Id: <202402021710.412HAIBP061494@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 0e867a491156 - main - aarch/SYS.h: implement _SYSCALL_BODY() macro List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e867a49115687398fd486b3af67fbb41f48b8a8 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=0e867a49115687398fd486b3af67fbb41f48b8a8 commit 0e867a49115687398fd486b3af67fbb41f48b8a8 Author: Brooks Davis AuthorDate: 2024-02-02 17:08:55 +0000 Commit: Brooks Davis CommitDate: 2024-02-02 17:08:55 +0000 aarch/SYS.h: implement _SYSCALL_BODY() macro Add _SYSCALL_BODY() macro which invokes the syscall via _SYCALL() and calls cerror as required. Use to implement PSEUDO() and RSYSCALL(). Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D43058 --- lib/libc/aarch64/SYS.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/aarch64/SYS.h b/lib/libc/aarch64/SYS.h index af7f0200a0c7..07d14ab1bb44 100644 --- a/lib/libc/aarch64/SYS.h +++ b/lib/libc/aarch64/SYS.h @@ -40,21 +40,21 @@ * to jump around to use more capable unconditional branch * instruction. */ -#define PSEUDO(name) \ -ENTRY(__sys_##name); \ - WEAK_REFERENCE(__sys_##name, _##name); \ +#define _SYSCALL_BODY(name) \ _SYSCALL(name); \ b.cs 1f; \ ret; \ -1: b cerror; \ +1: b cerror + +#define PSEUDO(name) \ +ENTRY(__sys_##name); \ + WEAK_REFERENCE(__sys_##name, _##name); \ + _SYSCALL_BODY(name); \ END(__sys_##name) #define RSYSCALL(name) \ ENTRY(__sys_##name); \ WEAK_REFERENCE(__sys_##name, name); \ WEAK_REFERENCE(__sys_##name, _##name); \ - _SYSCALL(name); \ - b.cs 1f; \ - ret; \ -1: b cerror; \ + _SYSCALL_BODY(name); \ END(__sys_##name)