xref: /kvm-unit-tests/lib/arm/eabi_compat.c (revision 901c1c8dcd406d63e5fd4a0b36026749810e6397)
1 /*
2  * Adapted from u-boot's arch/arm/lib/eabi_compat.c
3  */
4 #include "libcflat.h"
5 
6 int raise(int signum __unused)
7 {
8 	printf("Divide by zero!\n");
9 	abort();
10 	return 0;
11 }
12 
13 /* Dummy functions to avoid linker complaints */
14 void __aeabi_unwind_cpp_pr0(void)
15 {
16 }
17 
18 void __aeabi_unwind_cpp_pr1(void)
19 {
20 }
21