Skip to content
Snippets Groups Projects
Commit 222b7448 authored by Anna Lyons's avatar Anna Lyons
Browse files

aarch64: return ESR as part of user level fault

parent 7fc45c4e
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,11 @@ void VISIBLE NORETURN c_handle_undefined_instruction(void)
#endif
/* There's only one user-level fault on ARM, and the code is (0,0) */
#ifdef CONFIG_ARCH_AARCH32
handleUserLevelFault(0, 0);
#else
handleUserLevelFault(getESR(), 0);
#endif
restore_user_context();
UNREACHABLE();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment