git: 8ada3f78e68f - main - kinst.h: reorder function declarations based on implementation file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 14:59:48 UTC
The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=8ada3f78e68fe8827d6c84e9fd5f808f93984ca7 commit 8ada3f78e68fe8827d6c84e9fd5f808f93984ca7 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2023-07-19 14:50:24 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> 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 */