diff --git a/soc/runtime/exceptions.c b/soc/runtime/exceptions.c index 263913e33..34e0affde 100644 --- a/soc/runtime/exceptions.c +++ b/soc/runtime/exceptions.c @@ -30,5 +30,6 @@ int exception_getid(void) void exception_raise(int id) { + stored_id = id; exception_longjmp(exception_contexts[--ec_top].jb); }