Lines Matching refs:pEsf
27 static int check_esf_matches_expectations(const struct arch_esf *pEsf) in check_esf_matches_expectations() argument
31 (pEsf->basic.r0 == 0) && in check_esf_matches_expectations()
32 (pEsf->basic.r1 == 1) && in check_esf_matches_expectations()
33 (pEsf->basic.r2 == 2) && in check_esf_matches_expectations()
34 (pEsf->basic.r3 == 3) && in check_esf_matches_expectations()
35 (pEsf->basic.lr == 15) && in check_esf_matches_expectations()
36 (*(uint16_t *)pEsf->basic.pc == expected_fault_instruction); in check_esf_matches_expectations()
43 const struct _callee_saved *callee_regs = pEsf->extra_info.callee; in check_esf_matches_expectations()
65 if ((pEsf->extra_info.exc_return & exc_bits_set_mask) != in check_esf_matches_expectations()
68 pEsf->extra_info.exc_return); in check_esf_matches_expectations()
76 if (memcmp((void *)callee_regs->psp, pEsf, in check_esf_matches_expectations()
82 if (pEsf->extra_info.msp != expected_msp) { in check_esf_matches_expectations()
84 pEsf->extra_info.msp, expected_msp); in check_esf_matches_expectations()
91 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
107 if (check_esf_matches_expectations(pEsf) == 0) { in k_sys_fatal_error_handler()