• Graf Yang's avatar
    Blackfin: improve double fault debug handling · 01b9f4b0
    Graf Yang authored
    Since the hardware only provides reporting for the last exception handled,
    and the values are valid only when executing the exception handler, we
    need to save the context for reporting at a later point.  While we do this
    for one exception, it doesn't work properly when handling a second one as
    the original exception is clobbered by the double fault.  So when double
    fault debugging is enabled, create a dedicated shadow of these values and
    save/restore out of there.  Now the crash report properly displays the
    first exception as well as the second one.
    Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
    Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
    01b9f4b0
entry.S 40.5 KB