xref: /kvm-unit-tests/lib/arm/eabi_compat.c (revision 8cca5668ff14cbceb2ac77375f483e478ee907b5)
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