Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/fbt/mips/fbt_isa.c
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | fbt_provide_module_function(linker_file_t lf, int symindx, | ||||
fbt->fbtp_patchpoint = instr; | fbt->fbtp_patchpoint = instr; | ||||
fbt->fbtp_ctl = lf; | fbt->fbtp_ctl = lf; | ||||
fbt->fbtp_loadcnt = lf->loadcnt; | fbt->fbtp_loadcnt = lf->loadcnt; | ||||
fbt->fbtp_savedval = *instr; | fbt->fbtp_savedval = *instr; | ||||
fbt->fbtp_patchval = FBT_PATCHVAL; | fbt->fbtp_patchval = FBT_PATCHVAL; | ||||
fbt->fbtp_rval = DTRACE_INVOP_SD; | fbt->fbtp_rval = DTRACE_INVOP_SD; | ||||
fbt->fbtp_symindx = symindx; | fbt->fbtp_symindx = symindx; | ||||
fbt_update_constvalmask(fbt); | |||||
fbt->fbtp_hashnext = fbt_probetab[FBT_ADDR2NDX(instr)]; | fbt->fbtp_hashnext = fbt_probetab[FBT_ADDR2NDX(instr)]; | ||||
fbt_probetab[FBT_ADDR2NDX(instr)] = fbt; | fbt_probetab[FBT_ADDR2NDX(instr)] = fbt; | ||||
lf->fbt_nentries++; | lf->fbt_nentries++; | ||||
retfbt = NULL; | retfbt = NULL; | ||||
again: | again: | ||||
for (; instr < limit; instr++) { | for (; instr < limit; instr++) { | ||||
Show All 37 Lines |