From nobody Tue Jun 21 17:11:52 2022 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 3167585B095; Tue, 21 Jun 2022 17:11:53 +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 4LSCjj0wCdz3lRV; Tue, 21 Jun 2022 17:11:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655831513; 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=1beNRBnkSgW/rREUY8NiW0CT2KcqwuupXGptPnuy4Mo=; b=tWv5aZAlJws+VgeDsMBeojl8TKv9+a7waWoUZed1Pb9I1n+i0tl1jf/TxzK+l66onQRnvi aSo/YhdFshhFaldDT8Ycra7JZ1zqAopmbPIlDX7FXeW/hZZQzK+92E11j+F3O/9isVJpUv Nuh558ca3joF0iSxw34cFVA/dPpabx2XPAu9uc6j1IW51ouAkUyGBF8btoiOABPhWryXv5 gCbBTRh9YdoeIUrsZEkuOiySnOTJpNu27ZrHvSWcD1Yldr/slK8eYDN4nlNG4ws2dw4Ymx g+L+zmHafaSSDB0TA/Xwr9rkZxD9cBenl3bL1YlNrBzXTWB0VHeotnI/tzxLLw== 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 002AC15BC5; Tue, 21 Jun 2022 17:11:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25LHBqxc014314; Tue, 21 Jun 2022 17:11:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25LHBqcJ014313; Tue, 21 Jun 2022 17:11:52 GMT (envelope-from git) Date: Tue, 21 Jun 2022 17:11:52 GMT Message-Id: <202206211711.25LHBqcJ014313@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 8870cb573f4a - main - LinuxKPI: add asm/neon.h 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8870cb573f4ad7bbb6b0293f20f1dd463ffba310 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655831513; 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=1beNRBnkSgW/rREUY8NiW0CT2KcqwuupXGptPnuy4Mo=; b=U8j6J8dGVo3SIpCv2jGSLIo/uc8etQ6/IA69ZSRD4K0ka6yKhGEiuFfBExFHuyMCRgKNCk 3cYBWyl6SlE7ZUlLlqDqqO2fv3H8fnegKsS1rMZAJGWKRejS2OTT/KBpzXsggFSyHigT6h abtGysZ0kHrNpmLzVtxOrvQVjpNGtGmAgDczYGs+pr1ri7sj9+F+HPdg8EJKv3rNRD+DQD MnkA/mQ3aAjHmsRkVFvm3ixgGlLWJOAiYvfQ/lOmnE6Fs79zj39y58/s0NIdKPH8ZLFqdK c4UiDkOLEPVTTRv3ZNE2TT+GXyqaGZeSTs1fpown/y5Jn3GL3HUnALpB/QtGRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655831513; a=rsa-sha256; cv=none; b=IexISRiQzAzu8F/wnDv/6FWElpkkSfSiT8SLkTYnQ2eOOvUlSTU/XbE/6/eZFrSJ6/hxb3 3+euNTGOynYduUAUrDTqyNhZ0a8paaxBdb9rWf8iA38ZrYqeM/Qn3Ot+VO8qIG7pxleKq+ FTG5OsMph1NdMvq4GzE6Ule0RJLTxlHEPx3p9p2xrbfJLRdfbQBWMRWrfJ/8d9VQQjhhcD f3h3JRrIXfSbxer5CmyEgZP1PMwdEMR7cFzpH/GV4NrESw1KmCStMCp3Tt15ZsfsBzBeXi Ra2/UA9nOiJfp94RBK+GIyvNON01AhzQNhFJDXGW1sY1uiJoVlfR9SgI3Pm6IQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8870cb573f4ad7bbb6b0293f20f1dd463ffba310 commit 8870cb573f4ad7bbb6b0293f20f1dd463ffba310 Author: Greg V AuthorDate: 2022-06-21 17:09:30 +0000 Commit: Emmanuel Vadot CommitDate: 2022-06-21 17:10:43 +0000 LinuxKPI: add asm/neon.h This is equivalent to asm/fpu/api.h, but is included by drm on aarch64. Reviewed by: bz, imp, hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D35512 --- sys/compat/linuxkpi/common/include/asm/neon.h | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/neon.h b/sys/compat/linuxkpi/common/include/asm/neon.h new file mode 100644 index 000000000000..2547fa9304d5 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/asm/neon.h @@ -0,0 +1,40 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2022 Greg V + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _LINUXKPI_ASM_NEON_H_ +#define _LINUXKPI_ASM_NEON_H_ + +#define kernel_neon_begin() \ + lkpi_kernel_fpu_begin() + +#define kernel_neon_end() \ + lkpi_kernel_fpu_end() + +extern void lkpi_kernel_fpu_begin(void); +extern void lkpi_kernel_fpu_end(void); + +#endif /* _LINUXKPI_ASM_NEON_H_ */