Skip to content

Smtp: trap handler push/pop fails for ECALLS #602

@christian-herber-nxp

Description

@christian-herber-nxp

In contrast to other synchronous exceptions and interrupts, on ECALL you do not want to return to xepc but to xepc + 4. Otherwise you are returning to the ECALL itself and you are in an infinite loop.
I would propose adding epc to the argument registers written upon a synchronous exception.
It then does not have to be saved to the stack on entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions