blob: f7029918d4fb86e81205474dd8bae3f0d6efce2c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkf772acf2009-08-17 13:17:29 +02002/*
3 * Utility functions needed for (some) EABI conformant tool chains.
4 *
5 * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
Wolfgang Denkf772acf2009-08-17 13:17:29 +02006 */
7
8#include <common.h>
9
10int raise (int signum)
11{
Simon Glassfe901f22012-03-03 12:33:15 -080012 /* Even if printf() is available, it's large. Punt it for SPL builds */
13#if !defined(CONFIG_SPL_BUILD)
Wolfgang Denkf772acf2009-08-17 13:17:29 +020014 printf("raise: Signal # %d caught\n", signum);
Christian Riesch5cb939f2011-11-29 00:11:03 +000015#endif
Wolfgang Denkf772acf2009-08-17 13:17:29 +020016 return 0;
17}
Wolfgang Denkcd4b02b2010-05-10 23:08:02 +020018
19/* Dummy function to avoid linker complaints */
20void __aeabi_unwind_cpp_pr0(void)
21{
Jeroen Hofsteef2cbb032014-07-30 21:54:53 +020022}
Wolfgang Grandegger953209b2011-11-10 01:51:29 +000023
24void __aeabi_unwind_cpp_pr1(void)
25{
Jeroen Hofsteef2cbb032014-07-30 21:54:53 +020026}
27
28/* Copy memory like memcpy, but no return value required. */
29void __aeabi_memcpy(void *dest, const void *src, size_t n)
30{
31 (void) memcpy(dest, src, n);
32}
33
34void __aeabi_memset(void *dest, size_t n, int c)
35{
36 (void) memset(dest, c, n);
37}