blob: c4071ccef03edc187d538a61491ab3e4f569eb51 [file] [log] [blame]
/*
* Adapted from u-boot's arch/arm/lib/eabi_compat.c
*
* Copyright (C) 2017, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#include <libcflat.h>
/* Needed to compile with -Wmissing-prototypes */
int raise(int signum);
void __aeabi_unwind_cpp_pr0(void);
void __aeabi_unwind_cpp_pr1(void);
int raise(int signum __unused)
{
printf("Divide by zero!\n");
abort();
return 0;
}
/* Dummy functions to avoid linker complaints */
void __aeabi_unwind_cpp_pr0(void)
{
}
void __aeabi_unwind_cpp_pr1(void)
{
}