baremetal aarch64: error on unexpected interrupt

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-02-20 00:00:07 +00:00
parent 9db854871c
commit 48778ccd9c
2 changed files with 10 additions and 8 deletions

View File

@@ -21,12 +21,10 @@ mystart:
LKMC_VECTOR_TABLE
/* Default trap handler that does nothing.
*
* Weak means that if any other file defines it as a non-weak global,
* that one will take precedence.
*
* We need this one to not get undefined references.
*/
/* Default trap handler. */
LKMC_WEAK(lkmc_vector_trap_handler)
ret
ldr x0, =lkmc_vector_trap_handler_error
bl puts
bl lkmc_assert_fail
lkmc_vector_trap_handler_error:
.asciz "error: unexpected interrupt"