Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use SPR_NPC for determining exception vector #8

Open
wallento opened this issue May 5, 2016 · 0 comments
Open

Don't use SPR_NPC for determining exception vector #8

wallento opened this issue May 5, 2016 · 0 comments

Comments

@wallento
Copy link
Member

wallento commented May 5, 2016

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
Projects
None yet
Development

No branches or pull requests

1 participant