DoubleExceptionVector

vanBassum
Posts: 68
Joined: Sun Jan 17, 2021 11:59 am

DoubleExceptionVector

Postby vanBassum » Wed Aug 30, 2023 9:02 am

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 */

vanBassum
Posts: 68
Joined: Sun Jan 17, 2021 11:59 am

Re: DoubleExceptionVector

Postby vanBassum » Wed Aug 30, 2023 12:33 pm

It seems something in my memory is messed up.

Who is online

Users browsing this forum: Bing [Bot] and 109 guests