1 #include "include/or1k-support.h"
3 #include "or1k-internals.h"
5 #ifdef __OR1K_MULTICORE__
6 or1k_exception_handler_table_t
*_or1k_exception_handler_table
;
8 or1k_exception_handler_table_t _or1k_exception_handler_table
;
11 void or1k_exception_handler_add(int id
, or1k_exception_handler_fptr handler
)
13 // Subtract 2 as we do not have a vector at 0 and reset is static
15 #ifdef __OR1K_MULTICORE__
16 _or1k_exception_handler_table
[or1k_coreid()][id
] = handler
;
19 _or1k_exception_handler_table
[id
] = handler
;