Skip to content
Commit dc34d312 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: BUG() handling through trapa vector.



Previously we haven't been doing anything with verbose BUG() reporting,
and we've been relying on the oops path for handling BUG()'s, which is
rather sub-optimal.

This switches BUG handling to use a fixed trapa vector (#0x3e) where we
construct a small bug frame post trapa instruction to get the context
right. This also makes it trivial to wire up a DIE_BUG for the atomic
die chain, which we couldn't really do before.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1b73e6ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment