Page 1 of 1

DoubleExceptionVector

Posted: Wed Aug 30, 2023 9:02 am
by vanBassum
Hello,

While debugging I end up in xtensa_vector.S.
Specifically under _DoubleExceptionVector at break 1, 4

Any suggestions how to figure out what triggers this?
The callstack is useless since this is an interrupt.

Code: Select all

/*
--------------------------------------------------------------------------------
Double Exception.
Double exceptions are not a normal occurrence. They indicate a bug of some kind.
--------------------------------------------------------------------------------
*/

#ifdef XCHAL_DOUBLEEXC_VECTOR_VADDR

    .begin      literal_prefix .DoubleExceptionVector
    .section    .DoubleExceptionVector.text, "ax"
    .global     _DoubleExceptionVector
    .align      4

_DoubleExceptionVector:

    #if XCHAL_HAVE_DEBUG
    break   1, 4                            /* unhandled double exception */
    #endif
    movi    a0,PANIC_RSN_DOUBLEEXCEPTION
    wsr     a0,EXCCAUSE
    call0   _xt_panic                       /* does not return */
    rfde                                    /* make a0 point here not later */

    .end        literal_prefix

#endif /* XCHAL_DOUBLEEXC_VECTOR_VADDR */

Re: DoubleExceptionVector

Posted: Wed Aug 30, 2023 12:33 pm
by vanBassum
It seems something in my memory is messed up.