Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Utility functions needed for (some) EABI conformant tool chains. |
| 3 | * |
| 4 | * (C) Copyright 2009 Wolfgang Denk <wd@denx.de> |
| 5 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | |
| 11 | int raise (int signum) |
| 12 | { |
Simon Glass | fe901f2 | 2012-03-03 12:33:15 -0800 | [diff] [blame] | 13 | /* Even if printf() is available, it's large. Punt it for SPL builds */ |
| 14 | #if !defined(CONFIG_SPL_BUILD) |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 15 | printf("raise: Signal # %d caught\n", signum); |
Christian Riesch | 5cb939f | 2011-11-29 00:11:03 +0000 | [diff] [blame] | 16 | #endif |
Wolfgang Denk | f772acf | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 17 | return 0; |
| 18 | } |
Wolfgang Denk | cd4b02b | 2010-05-10 23:08:02 +0200 | [diff] [blame] | 19 | |
| 20 | /* Dummy function to avoid linker complaints */ |
| 21 | void __aeabi_unwind_cpp_pr0(void) |
| 22 | { |
| 23 | }; |
Wolfgang Grandegger | 953209b | 2011-11-10 01:51:29 +0000 | [diff] [blame] | 24 | |
| 25 | void __aeabi_unwind_cpp_pr1(void) |
| 26 | { |
| 27 | }; |