diff options
Diffstat (limited to 'libgloss/or1k/exceptions.c')
-rw-r--r-- | libgloss/or1k/exceptions.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libgloss/or1k/exceptions.c b/libgloss/or1k/exceptions.c deleted file mode 100644 index 8240d09d2..000000000 --- a/libgloss/or1k/exceptions.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "include/or1k-support.h" - -#include "or1k-internals.h" - -#ifdef __OR1K_MULTICORE__ -or1k_exception_handler_table_t *_or1k_exception_handler_table; -#else -or1k_exception_handler_table_t _or1k_exception_handler_table; -#endif - -void or1k_exception_handler_add(int id, or1k_exception_handler_fptr handler) -{ - // Subtract 2 as we do not have a vector at 0 and reset is static - id = id - 2; -#ifdef __OR1K_MULTICORE__ - _or1k_exception_handler_table[or1k_coreid()][id] = handler; - -#else - _or1k_exception_handler_table[id] = handler; -#endif -} |