diff options
Diffstat (limited to 'cpukit/score/cpu/or1k/or1k-exception-default.c')
-rw-r--r-- | cpukit/score/cpu/or1k/or1k-exception-default.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpukit/score/cpu/or1k/or1k-exception-default.c b/cpukit/score/cpu/or1k/or1k-exception-default.c new file mode 100644 index 0000000000..645a7f9844 --- /dev/null +++ b/cpukit/score/cpu/or1k/or1k-exception-default.c @@ -0,0 +1,23 @@ +/* + * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif + +#include <rtems/score/cpu.h> +#include <rtems/fatal.h> +#include <bsp/linker-symbols.h> +#include <stdio.h> + +void _OR1K_Exception_default(uint32_t vector, CPU_Exception_frame *frame); + +void _OR1K_Exception_default(uint32_t vector, CPU_Exception_frame *frame) +{ + rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame ); +} |