Wolfgang Denk | d47f486 | 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 | * |
| 6 | * This program is Free Software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; either version 2 of the |
| 9 | * License, or (at your option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #include <common.h> |
| 13 | |
| 14 | int raise (int signum) |
| 15 | { |
Simon Glass | 188d971 | 2012-03-03 12:33:15 -0800 | [diff] [blame] | 16 | /* Even if printf() is available, it's large. Punt it for SPL builds */ |
| 17 | #if !defined(CONFIG_SPL_BUILD) |
Wolfgang Denk | d47f486 | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 18 | printf("raise: Signal # %d caught\n", signum); |
Christian Riesch | 86657d4 | 2011-11-29 00:11:03 +0000 | [diff] [blame] | 19 | #endif |
Wolfgang Denk | d47f486 | 2009-08-17 13:17:29 +0200 | [diff] [blame] | 20 | return 0; |
| 21 | } |
Wolfgang Denk | 36b6970 | 2010-05-10 23:08:02 +0200 | [diff] [blame] | 22 | |
| 23 | /* Dummy function to avoid linker complaints */ |
| 24 | void __aeabi_unwind_cpp_pr0(void) |
| 25 | { |
| 26 | }; |
Wolfgang Grandegger | 74b04d9 | 2011-11-10 01:51:29 +0000 | [diff] [blame] | 27 | |
| 28 | void __aeabi_unwind_cpp_pr1(void) |
| 29 | { |
| 30 | }; |