Lines Matching refs:orc
200 static struct orc_entry *orc; in orc_find() local
237 orc = orc_module_find(ip); in orc_find()
238 if (orc) in orc_find()
239 return orc; in orc_find()
293 struct orc_entry *orc = _orc; in unwind_module_init() local
297 orc_size % sizeof(*orc) != 0 || in unwind_module_init()
298 num_entries != orc_size / sizeof(*orc)); in unwind_module_init()
307 cur_orc_table = orc; in unwind_module_init()
312 mod->arch.orc_unwind = orc; in unwind_module_init()
322 struct orc_entry *orc; in unwind_init() local
341 orc = __orc_find(__start_orc_unwind_ip, __start_orc_unwind, in unwind_init()
344 if (!orc) { in unwind_init()
349 orc_lookup[i] = orc - __start_orc_unwind; in unwind_init()
353 orc = __orc_find(__start_orc_unwind_ip, __start_orc_unwind, num_entries, in unwind_init()
355 if (!orc) { in unwind_init()
359 orc_lookup[lookup_num_blocks-1] = orc - __start_orc_unwind; in unwind_init()
472 struct orc_entry *orc; in unwind_next_frame() local
494 orc = orc_find(state->signal ? state->ip : state->ip - 1); in unwind_next_frame()
495 if (!orc) { in unwind_next_frame()
502 orc = &orc_fp_entry; in unwind_next_frame()
505 if (orc->type == ORC_TYPE_UNDEFINED) in unwind_next_frame()
508 if (orc->type == ORC_TYPE_END_OF_STACK) in unwind_next_frame()
512 state->signal = orc->signal; in unwind_next_frame()
515 switch (orc->sp_reg) { in unwind_next_frame()
517 sp = state->sp + orc->sp_offset; in unwind_next_frame()
521 sp = state->bp + orc->sp_offset; in unwind_next_frame()
530 sp = state->bp + orc->sp_offset; in unwind_next_frame()
568 orc->sp_reg, (void *)state->ip); in unwind_next_frame()
576 if (orc->sp_reg == ORC_REG_SP_INDIRECT) in unwind_next_frame()
577 sp += orc->sp_offset; in unwind_next_frame()
581 switch (orc->type) { in unwind_next_frame()
636 orc->type, (void *)orig_ip); in unwind_next_frame()
641 switch (orc->bp_reg) { in unwind_next_frame()
648 if (!deref_stack_reg(state, sp + orc->bp_offset, &state->bp)) in unwind_next_frame()
653 if (!deref_stack_reg(state, state->bp + orc->bp_offset, &state->bp)) in unwind_next_frame()
659 orc->bp_reg, (void *)orig_ip); in unwind_next_frame()