blob: a2cb06e49ae0248c2287a4a5538dccfad6e54674 [file] [log] [blame]
Wolfgang Denkf772acf2009-08-17 13:17:29 +02001/*
2 * Utility functions needed for (some) EABI conformant tool chains.
3 *
4 * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkf772acf2009-08-17 13:17:29 +02007 */
8
9#include <common.h>
10
11int raise (int signum)
12{
Simon Glassfe901f22012-03-03 12:33:15 -080013 /* Even if printf() is available, it's large. Punt it for SPL builds */
14#if !defined(CONFIG_SPL_BUILD)
Wolfgang Denkf772acf2009-08-17 13:17:29 +020015 printf("raise: Signal # %d caught\n", signum);
Christian Riesch5cb939f2011-11-29 00:11:03 +000016#endif
Wolfgang Denkf772acf2009-08-17 13:17:29 +020017 return 0;
18}
Wolfgang Denkcd4b02b2010-05-10 23:08:02 +020019
20/* Dummy function to avoid linker complaints */
21void __aeabi_unwind_cpp_pr0(void)
22{
Jeroen Hofsteef2cbb032014-07-30 21:54:53 +020023}
Wolfgang Grandegger953209b2011-11-10 01:51:29 +000024
25void __aeabi_unwind_cpp_pr1(void)
26{
Jeroen Hofsteef2cbb032014-07-30 21:54:53 +020027}
28
29/* Copy memory like memcpy, but no return value required. */
30void __aeabi_memcpy(void *dest, const void *src, size_t n)
31{
32 (void) memcpy(dest, src, n);
33}
34
35void __aeabi_memset(void *dest, size_t n, int c)
36{
37 (void) memset(dest, c, n);
38}