Cygwin: pinfo: raise MAX_PID to 4194304
[newlib-cygwin.git] / libgloss / or1k / exceptions.c
blob8240d09d2d33e77233a728d3acbedb9137b22222
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;
7 #else
8 or1k_exception_handler_table_t _or1k_exception_handler_table;
9 #endif
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
14 id = id - 2;
15 #ifdef __OR1K_MULTICORE__
16 _or1k_exception_handler_table[or1k_coreid()][id] = handler;
18 #else
19 _or1k_exception_handler_table[id] = handler;
20 #endif