xref: /kvm-unit-tests/lib/arm/eabi_compat.c (revision 49f758b8a983e49b4537ea2726e8a83a0d5632ad)
1 /*
2  * Adapted from u-boot's arch/arm/lib/eabi_compat.c
3  *
4  * Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2.
7  */
8 #include <libcflat.h>
9 
10 int raise(int signum __unused)
11 {
12 	printf("Divide by zero!\n");
13 	abort();
14 	return 0;
15 }
16 
17 /* Dummy functions to avoid linker complaints */
18 void __aeabi_unwind_cpp_pr0(void)
19 {
20 }
21 
22 void __aeabi_unwind_cpp_pr1(void)
23 {
24 }
25