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