newlib icon indicating copy to clipboard operation
newlib copied to clipboard

Don't use SPR_NPC for determining exception vector

Open wallento opened this issue 9 years ago • 0 comments

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).

wallento avatar May 05 '16 07:05 wallento