From nobody Wed Jul 19 14:59:48 2023 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 4R5f9w74nYz4nTk3; Wed, 19 Jul 2023 14:59:48 +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 4R5f9w6CV5z3mGR; Wed, 19 Jul 2023 14:59:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689778788; 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=jQ5gzMJG1kRMl26s7NnnwfvmYWaIAMW0Jo7o4wI8iQg=; b=ky+eOWKnFi3nRjl2fN8kyrTR5/CTLFMLTHxC2XqPv5FvqlFBkXmL10bxgAGRW/r9ym4HP+ 8clVtWDdQegkztpVxqqD9y+U3LtzBVLsbv+cvtWbHi3GvoYUD1YmEORs0OpldXf5yPrTKy uhzN63cLD1/iFWFnbfUk/2Ul+0TvrD8itRUl2dIYXmssJKXZhPD3K19pDa4w1up1h7QY7p URTVH1pHpO4dX1ZbBHJrtz9u3rNT98h39P0hXrcz45mnATc8JRO2DSTAJ3FEmcW/uDOxsF iJvK8+9owRbpqC2ViuGkyHVuTHzICG6BTvoCMhyXKjXIOrefu22ki6k//f3GwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689778788; 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=jQ5gzMJG1kRMl26s7NnnwfvmYWaIAMW0Jo7o4wI8iQg=; b=Z0+2URWtLoD7iHABuNPu0V62Zvg+G7wp/wr6nA+BjHT9b8VC5NCHJmYlRczv0liEqJAOCV nZi4u9slEkB90pZuiHRY/eoPGB6c69svSnyf+TTE7UjzdKdyhM9Pa8HrQTu52FyUQkxul3 W8U6FTnoTnrnJT8ycLEUpCN2RzF5m9odc7Oz8feswr0fy2vw8eyv3n02S2QMh1AoVPoGGS jpwEhuvoYkCS6z8icA2zvgDww1tfT/mhAvAlXzkmzNUupvr7Rhh/CC2SjYdj76lzD52/JF XrZ5Tsm9PRlHQvkq5GL6SvetO0YE6DDvnIW61ahFFm1vjx/JbgsBkbhxJBfYzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689778788; a=rsa-sha256; cv=none; b=idJwqgH5GRxgassA4/govgWwarYGwJBc8V8ofNhifa8PpYPaxJomMxCTAw+EnXiOIMAw8R VA6JUxMgEqEuXpn9LxEbHpQmcuH2zIXm2FklLhLgaauqeP/w78kqnhtzwXnJ1cmKcpM14z 5yjw2hsj5XkokmLnmKcrNYdJKWPU5ZSzUFg2UxEKd0gWeYvr77iL+CM7LB/+kwV1X6pytB hBhxoU3Na+Pka1yP1FvcLBjib3V/WhCHBHZvBftFjXLrT9Yx7r5A4JkozLY5XGLwAE7m0U mce2rlxCSOwTdCnhMiS0dj7mb6CFpj+Z02jPizoMSmOb6vYZ4IaGT80IRfzKWg== 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 4R5f9w592Gzs9X; Wed, 19 Jul 2023 14:59:48 +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 36JExmXv067519; Wed, 19 Jul 2023 14:59:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36JExmf1067518; Wed, 19 Jul 2023 14:59:48 GMT (envelope-from git) Date: Wed, 19 Jul 2023 14:59:48 GMT Message-Id: <202307191459.36JExmf1067518@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 8ada3f78e68f - main - kinst.h: reorder function declarations based on implementation file 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: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ada3f78e68fe8827d6c84e9fd5f808f93984ca7 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=8ada3f78e68fe8827d6c84e9fd5f808f93984ca7 commit 8ada3f78e68fe8827d6c84e9fd5f808f93984ca7 Author: Christos Margiolis AuthorDate: 2023-07-19 14:50:24 +0000 Commit: Christos Margiolis CommitDate: 2023-07-19 14:50:24 +0000 kinst.h: reorder function declarations based on implementation file Reviewed by: markj Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41032 --- sys/cddl/dev/kinst/kinst.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/sys/cddl/dev/kinst/kinst.h b/sys/cddl/dev/kinst/kinst.h index d2ccac50595c..0a47eb4f3583 100644 --- a/sys/cddl/dev/kinst/kinst.h +++ b/sys/cddl/dev/kinst/kinst.h @@ -50,23 +50,26 @@ extern struct kinst_probe_list *kinst_probetab; struct linker_file; struct linker_symval; +/* kinst.c */ volatile void *kinst_memcpy(volatile void *, volatile const void *, size_t); bool kinst_excluded(const char *); -bool kinst_md_excluded(const char *); +void kinst_probe_create(struct kinst_probe *, struct linker_file *); + +/* arch/kinst_isa.c */ int kinst_invop(uintptr_t, struct trapframe *, uintptr_t); +void kinst_patch_tracepoint(struct kinst_probe *, kinst_patchval_t); int kinst_make_probe(struct linker_file *, int, struct linker_symval *, void *); -void kinst_patch_tracepoint(struct kinst_probe *, kinst_patchval_t); -void kinst_probe_create(struct kinst_probe *, struct linker_file *); +int kinst_md_init(void); +void kinst_md_deinit(void); +bool kinst_md_excluded(const char *); +/* trampoline.c */ int kinst_trampoline_init(void); int kinst_trampoline_deinit(void); uint8_t *kinst_trampoline_alloc(int); void kinst_trampoline_dealloc(uint8_t *); -int kinst_md_init(void); -void kinst_md_deinit(void); - #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_KINST); #endif /* MALLOC_DECLARE */