X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/f427ee49d309d8fc33ebf3042c3a775f2f530ded..HEAD:/bsd/dev/arm64/dtrace_isa.c?ds=sidebyside diff --git a/bsd/dev/arm64/dtrace_isa.c b/bsd/dev/arm64/dtrace_isa.c index 494bb7fad..39d6988f9 100644 --- a/bsd/dev/arm64/dtrace_isa.c +++ b/bsd/dev/arm64/dtrace_isa.c @@ -52,9 +52,6 @@ extern struct arm_saved_state *find_kern_regs(thread_t); extern dtrace_id_t dtrace_probeid_error; /* special ERROR probe */ typedef arm_saved_state_t savearea_t; -extern lck_attr_t *dtrace_lck_attr; -extern lck_grp_t *dtrace_lck_grp; - #if XNU_MONITOR extern void * pmap_stacks_start; extern void * pmap_stacks_end; @@ -99,7 +96,7 @@ dtrace_getipl(void) * MP coordination */ -decl_lck_mtx_data(static, dt_xc_lock); +static LCK_MTX_DECLARE_ATTR(dt_xc_lock, &dtrace_lck_grp, &dtrace_lck_attr); static uint32_t dt_xc_sync; typedef struct xcArg { @@ -143,16 +140,6 @@ dtrace_xcall(processorid_t cpu, dtrace_xcall_t f, void *arg) return; } -/* - * Initialization - */ -void -dtrace_isa_init(void) -{ - lck_mtx_init(&dt_xc_lock, dtrace_lck_grp, dtrace_lck_attr); - return; -} - /** * Register definitions