Skip to content

Don't use SPR_NPC for determining exception vector #8

Open

Description

@wallento

We should not use the SPR_NPC here: https://github.com/openrisc/newlib/blob/or1k/libgloss/or1k/crt0.S#L153

Software should instead always use l.jal and r9, but here it is even simpler: Use the id from the macro. Also needs change in the exception handler then (no address given anymore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions