[61] | 1 | /* kernel_cfg.c */
|
---|
| 2 | #include "kernel/kernel_int.h"
|
---|
| 3 | #include "kernel_cfg.h"
|
---|
| 4 |
|
---|
| 5 | #ifndef TOPPERS_EMPTY_LABEL
|
---|
| 6 | #define TOPPERS_EMPTY_LABEL(x,y) x y[0]
|
---|
| 7 | #endif
|
---|
| 8 |
|
---|
| 9 | #if TKERNEL_PRID != 0x07u
|
---|
| 10 | #error The kernel does not match this configuration file.
|
---|
| 11 | #endif
|
---|
| 12 |
|
---|
| 13 | /*
|
---|
| 14 | * Include Directives (#include)
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #include "target_timer.h"
|
---|
| 18 | #include "syssvc/syslog.h"
|
---|
| 19 | #include "syssvc/banner.h"
|
---|
| 20 | #include "target_syssvc.h"
|
---|
| 21 | #include "target_serial.h"
|
---|
| 22 | #include "syssvc/serial.h"
|
---|
| 23 | #include "syssvc/logtask.h"
|
---|
| 24 | #include "sample1.h"
|
---|
| 25 |
|
---|
| 26 | /*
|
---|
| 27 | * Default Definitions of Trace Log Macros
|
---|
| 28 | */
|
---|
| 29 |
|
---|
| 30 | #ifndef LOG_ISR_ENTER
|
---|
| 31 | #define LOG_ISR_ENTER(intno)
|
---|
| 32 | #endif /* LOG_ISR_ENTER */
|
---|
| 33 |
|
---|
| 34 | #ifndef LOG_ISR_LEAVE
|
---|
| 35 | #define LOG_ISR_LEAVE(intno)
|
---|
| 36 | #endif /* LOG_ISR_LEAVE */
|
---|
| 37 |
|
---|
| 38 | /*
|
---|
| 39 | * Task Management Functions
|
---|
| 40 | */
|
---|
| 41 |
|
---|
| 42 | const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1);
|
---|
| 43 |
|
---|
| 44 | static STK_T _kernel_stack_LOGTASK[COUNT_STK_T(LOGTASK_STACK_SIZE)];
|
---|
| 45 | static STK_T _kernel_stack_TASK1[COUNT_STK_T(STACK_SIZE)];
|
---|
| 46 | static STK_T _kernel_stack_TASK2[COUNT_STK_T(STACK_SIZE)];
|
---|
| 47 | static STK_T _kernel_stack_TASK3[COUNT_STK_T(STACK_SIZE)];
|
---|
| 48 | static STK_T _kernel_stack_MAIN_TASK[COUNT_STK_T(STACK_SIZE)];
|
---|
| 49 |
|
---|
| 50 | const TINIB _kernel_tinib_table[TNUM_TSKID] = {
|
---|
| 51 | { (TA_ACT), (intptr_t)(LOGTASK_PORTID), ((TASK)(logtask_main)), INT_PRIORITY(LOGTASK_PRIORITY), ROUND_STK_T(LOGTASK_STACK_SIZE), _kernel_stack_LOGTASK, (TA_NULL), (NULL) },
|
---|
| 52 | { (TA_NULL), (intptr_t)(1), ((TASK)(task)), INT_PRIORITY(MID_PRIORITY), ROUND_STK_T(STACK_SIZE), _kernel_stack_TASK1, (TA_NULL), (tex_routine) },
|
---|
| 53 | { (TA_NULL), (intptr_t)(2), ((TASK)(task)), INT_PRIORITY(MID_PRIORITY), ROUND_STK_T(STACK_SIZE), _kernel_stack_TASK2, (TA_NULL), (tex_routine) },
|
---|
| 54 | { (TA_NULL), (intptr_t)(3), ((TASK)(task)), INT_PRIORITY(MID_PRIORITY), ROUND_STK_T(STACK_SIZE), _kernel_stack_TASK3, (TA_NULL), (tex_routine) },
|
---|
| 55 | { (TA_ACT), (intptr_t)(0), ((TASK)(main_task)), INT_PRIORITY(MAIN_PRIORITY), ROUND_STK_T(STACK_SIZE), _kernel_stack_MAIN_TASK, (TA_NULL), (NULL) }
|
---|
| 56 | };
|
---|
| 57 |
|
---|
| 58 | TCB _kernel_tcb_table[TNUM_TSKID];
|
---|
| 59 |
|
---|
| 60 | const ID _kernel_torder_table[TNUM_TSKID] = {
|
---|
| 61 | LOGTASK, TASK1, TASK2, TASK3, MAIN_TASK
|
---|
| 62 | };
|
---|
| 63 |
|
---|
| 64 | /*
|
---|
| 65 | * Semaphore Functions
|
---|
| 66 | */
|
---|
| 67 |
|
---|
| 68 | const ID _kernel_tmax_semid = (TMIN_SEMID + TNUM_SEMID - 1);
|
---|
| 69 |
|
---|
| 70 | const SEMINIB _kernel_seminib_table[TNUM_SEMID] = {
|
---|
| 71 | { (TA_TPRI), (0), (1) },
|
---|
| 72 | { (TA_TPRI), (1), (1) }
|
---|
| 73 | };
|
---|
| 74 |
|
---|
| 75 | SEMCB _kernel_semcb_table[TNUM_SEMID];
|
---|
| 76 |
|
---|
| 77 | /*
|
---|
| 78 | * Eventflag Functions
|
---|
| 79 | */
|
---|
| 80 |
|
---|
| 81 | const ID _kernel_tmax_flgid = (TMIN_FLGID + TNUM_FLGID - 1);
|
---|
| 82 |
|
---|
| 83 | TOPPERS_EMPTY_LABEL(const FLGINIB, _kernel_flginib_table);
|
---|
| 84 | TOPPERS_EMPTY_LABEL(FLGCB, _kernel_flgcb_table);
|
---|
| 85 |
|
---|
| 86 | /*
|
---|
| 87 | * Dataqueue Functions
|
---|
| 88 | */
|
---|
| 89 |
|
---|
| 90 | const ID _kernel_tmax_dtqid = (TMIN_DTQID + TNUM_DTQID - 1);
|
---|
| 91 |
|
---|
| 92 | TOPPERS_EMPTY_LABEL(const DTQINIB, _kernel_dtqinib_table);
|
---|
| 93 | TOPPERS_EMPTY_LABEL(DTQCB, _kernel_dtqcb_table);
|
---|
| 94 |
|
---|
| 95 | /*
|
---|
| 96 | * Priority Dataqueue Functions
|
---|
| 97 | */
|
---|
| 98 |
|
---|
| 99 | const ID _kernel_tmax_pdqid = (TMIN_PDQID + TNUM_PDQID - 1);
|
---|
| 100 |
|
---|
| 101 | TOPPERS_EMPTY_LABEL(const PDQINIB, _kernel_pdqinib_table);
|
---|
| 102 | TOPPERS_EMPTY_LABEL(PDQCB, _kernel_pdqcb_table);
|
---|
| 103 |
|
---|
| 104 | /*
|
---|
| 105 | * Mailbox Functions
|
---|
| 106 | */
|
---|
| 107 |
|
---|
| 108 | const ID _kernel_tmax_mbxid = (TMIN_MBXID + TNUM_MBXID - 1);
|
---|
| 109 |
|
---|
| 110 | TOPPERS_EMPTY_LABEL(const MBXINIB, _kernel_mbxinib_table);
|
---|
| 111 | TOPPERS_EMPTY_LABEL(MBXCB, _kernel_mbxcb_table);
|
---|
| 112 |
|
---|
| 113 | /*
|
---|
| 114 | * Fixed-sized Memorypool Functions
|
---|
| 115 | */
|
---|
| 116 |
|
---|
| 117 | const ID _kernel_tmax_mpfid = (TMIN_MPFID + TNUM_MPFID - 1);
|
---|
| 118 |
|
---|
| 119 | TOPPERS_EMPTY_LABEL(const MPFINIB, _kernel_mpfinib_table);
|
---|
| 120 | TOPPERS_EMPTY_LABEL(MPFCB, _kernel_mpfcb_table);
|
---|
| 121 |
|
---|
| 122 | /*
|
---|
| 123 | * Cyclic Handler Functions
|
---|
| 124 | */
|
---|
| 125 |
|
---|
| 126 | const ID _kernel_tmax_cycid = (TMIN_CYCID + TNUM_CYCID - 1);
|
---|
| 127 |
|
---|
| 128 | const CYCINIB _kernel_cycinib_table[TNUM_CYCID] = {
|
---|
| 129 | { (TA_NULL), (intptr_t)(0), (cyclic_handler), (2000), (0) }
|
---|
| 130 | };
|
---|
| 131 |
|
---|
| 132 | CYCCB _kernel_cyccb_table[TNUM_CYCID];
|
---|
| 133 |
|
---|
| 134 | /*
|
---|
| 135 | * Alarm Handler Functions
|
---|
| 136 | */
|
---|
| 137 |
|
---|
| 138 | const ID _kernel_tmax_almid = (TMIN_ALMID + TNUM_ALMID - 1);
|
---|
| 139 |
|
---|
| 140 | const ALMINIB _kernel_alminib_table[TNUM_ALMID] = {
|
---|
| 141 | { (TA_NULL), (intptr_t)(0), (alarm_handler) }
|
---|
| 142 | };
|
---|
| 143 |
|
---|
| 144 | ALMCB _kernel_almcb_table[TNUM_ALMID];
|
---|
| 145 |
|
---|
| 146 | /*
|
---|
| 147 | * Interrupt Management Functions
|
---|
| 148 | */
|
---|
| 149 |
|
---|
| 150 | void
|
---|
| 151 | _kernel_inthdr_65(void)
|
---|
| 152 | {
|
---|
| 153 | i_begin_int(65);
|
---|
| 154 | LOG_ISR_ENTER(65);
|
---|
| 155 | ((ISR)(sio_isr))((intptr_t)(SIO_PORTID));
|
---|
| 156 | LOG_ISR_LEAVE(65);
|
---|
| 157 | i_end_int(65);
|
---|
| 158 | }
|
---|
| 159 |
|
---|
| 160 | #define TNUM_INHNO 2
|
---|
| 161 | const uint_t _kernel_tnum_inhno = TNUM_INHNO;
|
---|
| 162 |
|
---|
| 163 | INTHDR_ENTRY(INHNO_TIMER, 15, target_timer_handler)
|
---|
| 164 | INTHDR_ENTRY(65, 65, _kernel_inthdr_65)
|
---|
| 165 |
|
---|
| 166 | const INHINIB _kernel_inhinib_table[TNUM_INHNO] = {
|
---|
| 167 | { (INHNO_TIMER), (TA_NULL), (FP)(INT_ENTRY(INHNO_TIMER, target_timer_handler)) },
|
---|
| 168 | { (65), (TA_NULL), (FP)(INT_ENTRY(65, _kernel_inthdr_65)) }
|
---|
| 169 | };
|
---|
| 170 |
|
---|
| 171 | #define TNUM_INTNO 2
|
---|
| 172 | const uint_t _kernel_tnum_intno = TNUM_INTNO;
|
---|
| 173 |
|
---|
| 174 | const INTINIB _kernel_intinib_table[TNUM_INTNO] = {
|
---|
| 175 | { (INTNO_TIMER), (TA_ENAINT|INTATR_TIMER), (INTPRI_TIMER) },
|
---|
| 176 | { (INTNO_SIO), (TA_ENAINT|INTATR_SIO), (INTPRI_SIO) }
|
---|
| 177 | };
|
---|
| 178 |
|
---|
| 179 | /*
|
---|
| 180 | * CPU Exception Management Functions
|
---|
| 181 | */
|
---|
| 182 |
|
---|
| 183 | #define TNUM_EXCNO 1
|
---|
| 184 | const uint_t _kernel_tnum_excno = TNUM_EXCNO;
|
---|
| 185 |
|
---|
| 186 | EXCHDR_ENTRY(CPUEXC1, 6, cpuexc_handler)
|
---|
| 187 |
|
---|
| 188 | const EXCINIB _kernel_excinib_table[TNUM_EXCNO] = {
|
---|
| 189 | { (CPUEXC1), (TA_NULL), (FP)(EXC_ENTRY(CPUEXC1, cpuexc_handler)) }
|
---|
| 190 | };
|
---|
| 191 |
|
---|
| 192 | /*
|
---|
| 193 | * Stack Area for Non-task Context
|
---|
| 194 | */
|
---|
| 195 |
|
---|
| 196 | #ifdef DEFAULT_ISTK
|
---|
| 197 |
|
---|
| 198 | #define TOPPERS_ISTKSZ DEFAULT_ISTKSZ
|
---|
| 199 | #define TOPPERS_ISTK DEFAULT_ISTK
|
---|
| 200 |
|
---|
| 201 | #else /* DEAULT_ISTK */
|
---|
| 202 |
|
---|
| 203 | static STK_T _kernel_istack[COUNT_STK_T(DEFAULT_ISTKSZ)];
|
---|
| 204 | #define TOPPERS_ISTKSZ ROUND_STK_T(DEFAULT_ISTKSZ)
|
---|
| 205 | #define TOPPERS_ISTK _kernel_istack
|
---|
| 206 |
|
---|
| 207 | #endif /* DEAULT_ISTK */
|
---|
| 208 |
|
---|
| 209 | const SIZE _kernel_istksz = TOPPERS_ISTKSZ;
|
---|
| 210 | STK_T *const _kernel_istk = TOPPERS_ISTK;
|
---|
| 211 |
|
---|
| 212 | #ifdef TOPPERS_ISTKPT
|
---|
| 213 | STK_T *const _kernel_istkpt = TOPPERS_ISTKPT(TOPPERS_ISTK, TOPPERS_ISTKSZ);
|
---|
| 214 | #endif /* TOPPERS_ISTKPT */
|
---|
| 215 |
|
---|
| 216 | /*
|
---|
| 217 | * Time Event Management
|
---|
| 218 | */
|
---|
| 219 |
|
---|
| 220 | TMEVTN _kernel_tmevt_heap[TNUM_TSKID + TNUM_CYCID + TNUM_ALMID];
|
---|
| 221 |
|
---|
| 222 | /*
|
---|
| 223 | * Module Initialization Function
|
---|
| 224 | */
|
---|
| 225 |
|
---|
| 226 | void
|
---|
| 227 | _kernel_initialize_object(void)
|
---|
| 228 | {
|
---|
| 229 | _kernel_initialize_task();
|
---|
| 230 | _kernel_initialize_semaphore();
|
---|
| 231 | _kernel_initialize_cyclic();
|
---|
| 232 | _kernel_initialize_alarm();
|
---|
| 233 | _kernel_initialize_interrupt();
|
---|
| 234 | _kernel_initialize_exception();
|
---|
| 235 | }
|
---|
| 236 |
|
---|
| 237 | /*
|
---|
| 238 | * Initialization Routine
|
---|
| 239 | */
|
---|
| 240 |
|
---|
| 241 | void
|
---|
| 242 | _kernel_call_inirtn(void)
|
---|
| 243 | {
|
---|
| 244 | ((INIRTN)(target_timer_initialize))((intptr_t)(0));
|
---|
| 245 | ((INIRTN)(syslog_initialize))((intptr_t)(0));
|
---|
| 246 | ((INIRTN)(print_banner))((intptr_t)(0));
|
---|
| 247 | ((INIRTN)(sio_initialize))((intptr_t)(0));
|
---|
| 248 | ((INIRTN)(serial_initialize))((intptr_t)(0));
|
---|
| 249 | }
|
---|
| 250 |
|
---|
| 251 | /*
|
---|
| 252 | * Termination Routine
|
---|
| 253 | */
|
---|
| 254 |
|
---|
| 255 | void
|
---|
| 256 | _kernel_call_terrtn(void)
|
---|
| 257 | {
|
---|
| 258 | ((TERRTN)(logtask_terminate))((intptr_t)(0));
|
---|
| 259 | ((TERRTN)(target_timer_terminate))((intptr_t)(0));
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | /*
|
---|
| 263 | * Target-dependent Definitions (ARM-M)
|
---|
| 264 | */
|
---|
| 265 |
|
---|
| 266 |
|
---|
| 267 |
|
---|
| 268 | #pragma location=".intvec"
|
---|
| 269 | const FP _kernel_vector_table[] =
|
---|
| 270 | {
|
---|
| 271 | (FP)(TOPPERS_ISTKPT(TOPPERS_ISTK, TOPPERS_ISTKSZ)), // 0 The initial stack pointer
|
---|
| 272 | (FP)_start, // 1 The reset handler
|
---|
| 273 | (FP)(_kernel_core_exc_entry), /* 2 */
|
---|
| 274 | (FP)(_kernel_core_exc_entry), /* 3 */
|
---|
| 275 | (FP)(_kernel_core_exc_entry), /* 4 */
|
---|
| 276 | (FP)(_kernel_core_exc_entry), /* 5 */
|
---|
| 277 | (FP)(_kernel_core_exc_entry), /* 6 */
|
---|
| 278 | (FP)(_kernel_core_exc_entry), /* 7 */
|
---|
| 279 | (FP)(_kernel_core_exc_entry), /* 8 */
|
---|
| 280 | (FP)(_kernel_core_exc_entry), /* 9 */
|
---|
| 281 | (FP)(_kernel_core_exc_entry), /* 10 */
|
---|
| 282 | (FP)(_kernel_svc_handler), // 11 SVCall handler /* 11 */
|
---|
| 283 | (FP)(_kernel_core_exc_entry), /* 12 */
|
---|
| 284 | (FP)(_kernel_core_exc_entry), /* 13 */
|
---|
| 285 | (FP)(_kernel_core_exc_entry), /* 14 */
|
---|
| 286 | (FP)(_kernel_core_int_entry), /* 15 */
|
---|
| 287 | (FP)(_kernel_core_int_entry), /* 16 */
|
---|
| 288 | (FP)(_kernel_core_int_entry), /* 17 */
|
---|
| 289 | (FP)(_kernel_core_int_entry), /* 18 */
|
---|
| 290 | (FP)(_kernel_core_int_entry), /* 19 */
|
---|
| 291 | (FP)(_kernel_core_int_entry), /* 20 */
|
---|
| 292 | (FP)(_kernel_core_int_entry), /* 21 */
|
---|
| 293 | (FP)(_kernel_core_int_entry), /* 22 */
|
---|
| 294 | (FP)(_kernel_core_int_entry), /* 23 */
|
---|
| 295 | (FP)(_kernel_core_int_entry), /* 24 */
|
---|
| 296 | (FP)(_kernel_core_int_entry), /* 25 */
|
---|
| 297 | (FP)(_kernel_core_int_entry), /* 26 */
|
---|
| 298 | (FP)(_kernel_core_int_entry), /* 27 */
|
---|
| 299 | (FP)(_kernel_core_int_entry), /* 28 */
|
---|
| 300 | (FP)(_kernel_core_int_entry), /* 29 */
|
---|
| 301 | (FP)(_kernel_core_int_entry), /* 30 */
|
---|
| 302 | (FP)(_kernel_core_int_entry), /* 31 */
|
---|
| 303 | (FP)(_kernel_core_int_entry), /* 32 */
|
---|
| 304 | (FP)(_kernel_core_int_entry), /* 33 */
|
---|
| 305 | (FP)(_kernel_core_int_entry), /* 34 */
|
---|
| 306 | (FP)(_kernel_core_int_entry), /* 35 */
|
---|
| 307 | (FP)(_kernel_core_int_entry), /* 36 */
|
---|
| 308 | (FP)(_kernel_core_int_entry), /* 37 */
|
---|
| 309 | (FP)(_kernel_core_int_entry), /* 38 */
|
---|
| 310 | (FP)(_kernel_core_int_entry), /* 39 */
|
---|
| 311 | (FP)(_kernel_core_int_entry), /* 40 */
|
---|
| 312 | (FP)(_kernel_core_int_entry), /* 41 */
|
---|
| 313 | (FP)(_kernel_core_int_entry), /* 42 */
|
---|
| 314 | (FP)(_kernel_core_int_entry), /* 43 */
|
---|
| 315 | (FP)(_kernel_core_int_entry), /* 44 */
|
---|
| 316 | (FP)(_kernel_core_int_entry), /* 45 */
|
---|
| 317 | (FP)(_kernel_core_int_entry), /* 46 */
|
---|
| 318 | (FP)(_kernel_core_int_entry), /* 47 */
|
---|
| 319 | (FP)(_kernel_core_int_entry), /* 48 */
|
---|
| 320 | (FP)(_kernel_core_int_entry), /* 49 */
|
---|
| 321 | (FP)(_kernel_core_int_entry), /* 50 */
|
---|
| 322 | (FP)(_kernel_core_int_entry), /* 51 */
|
---|
| 323 | (FP)(_kernel_core_int_entry), /* 52 */
|
---|
| 324 | (FP)(_kernel_core_int_entry), /* 53 */
|
---|
| 325 | (FP)(_kernel_core_int_entry), /* 54 */
|
---|
| 326 | (FP)(_kernel_core_int_entry), /* 55 */
|
---|
| 327 | (FP)(_kernel_core_int_entry), /* 56 */
|
---|
| 328 | (FP)(_kernel_core_int_entry), /* 57 */
|
---|
| 329 | (FP)(_kernel_core_int_entry), /* 58 */
|
---|
| 330 | (FP)(_kernel_core_int_entry), /* 59 */
|
---|
| 331 | (FP)(_kernel_core_int_entry), /* 60 */
|
---|
| 332 | (FP)(_kernel_core_int_entry), /* 61 */
|
---|
| 333 | (FP)(_kernel_core_int_entry), /* 62 */
|
---|
| 334 | (FP)(_kernel_core_int_entry), /* 63 */
|
---|
| 335 | (FP)(_kernel_core_int_entry), /* 64 */
|
---|
| 336 | (FP)(_kernel_core_int_entry), /* 65 */
|
---|
| 337 | (FP)(_kernel_core_int_entry), /* 66 */
|
---|
| 338 | (FP)(_kernel_core_int_entry), /* 67 */
|
---|
| 339 | (FP)(_kernel_core_int_entry), /* 68 */
|
---|
| 340 | (FP)(_kernel_core_int_entry), /* 69 */
|
---|
| 341 | (FP)(_kernel_core_int_entry), /* 70 */
|
---|
| 342 | (FP)(_kernel_core_int_entry), /* 71 */
|
---|
| 343 | (FP)(_kernel_core_int_entry), /* 72 */
|
---|
| 344 | (FP)(_kernel_core_int_entry), /* 73 */
|
---|
| 345 | (FP)(_kernel_core_int_entry), /* 74 */
|
---|
| 346 | (FP)(_kernel_core_int_entry), /* 75 */
|
---|
| 347 | (FP)(_kernel_core_int_entry), /* 76 */
|
---|
| 348 | (FP)(_kernel_core_int_entry), /* 77 */
|
---|
| 349 | (FP)(_kernel_core_int_entry), /* 78 */
|
---|
| 350 | (FP)(_kernel_core_int_entry), /* 79 */
|
---|
| 351 | (FP)(_kernel_core_int_entry), /* 80 */
|
---|
| 352 | (FP)(_kernel_core_int_entry), /* 81 */
|
---|
| 353 | (FP)(_kernel_core_int_entry), /* 82 */
|
---|
| 354 | (FP)(_kernel_core_int_entry), /* 83 */
|
---|
| 355 | (FP)(_kernel_core_int_entry), /* 84 */
|
---|
| 356 | (FP)(_kernel_core_int_entry), /* 85 */
|
---|
| 357 | (FP)(_kernel_core_int_entry), /* 86 */
|
---|
| 358 | (FP)(_kernel_core_int_entry), /* 87 */
|
---|
| 359 | (FP)(_kernel_core_int_entry), /* 88 */
|
---|
| 360 | (FP)(_kernel_core_int_entry), /* 89 */
|
---|
| 361 | (FP)(_kernel_core_int_entry), /* 90 */
|
---|
| 362 | (FP)(_kernel_core_int_entry), /* 91 */
|
---|
| 363 | (FP)(_kernel_core_int_entry), /* 92 */
|
---|
| 364 | (FP)(_kernel_core_int_entry), /* 93 */
|
---|
| 365 | (FP)(_kernel_core_int_entry), /* 94 */
|
---|
| 366 | (FP)(_kernel_core_int_entry), /* 95 */
|
---|
| 367 | (FP)(_kernel_core_int_entry), /* 96 */
|
---|
| 368 | (FP)(_kernel_core_int_entry), /* 97 */
|
---|
| 369 | (FP)(_kernel_core_int_entry), /* 98 */
|
---|
| 370 | (FP)(_kernel_core_int_entry), /* 99 */
|
---|
| 371 | (FP)(_kernel_core_int_entry), /* 100 */
|
---|
| 372 | (FP)(_kernel_core_int_entry), /* 101 */
|
---|
| 373 | (FP)(_kernel_core_int_entry), /* 102 */
|
---|
| 374 | (FP)(_kernel_core_int_entry), /* 103 */
|
---|
| 375 | (FP)(_kernel_core_int_entry), /* 104 */
|
---|
| 376 | (FP)(_kernel_core_int_entry), /* 105 */
|
---|
| 377 | (FP)(_kernel_core_int_entry), /* 106 */
|
---|
| 378 | (FP)(_kernel_core_int_entry), /* 107 */
|
---|
| 379 | (FP)(_kernel_core_int_entry), /* 108 */
|
---|
| 380 | (FP)(_kernel_core_int_entry), /* 109 */
|
---|
| 381 | (FP)(_kernel_core_int_entry), /* 110 */
|
---|
| 382 | (FP)(_kernel_core_int_entry), /* 111 */
|
---|
| 383 | (FP)(_kernel_core_int_entry), /* 112 */
|
---|
| 384 | (FP)(_kernel_core_int_entry), /* 113 */
|
---|
| 385 | (FP)(_kernel_core_int_entry), /* 114 */
|
---|
| 386 | (FP)(_kernel_core_int_entry), /* 115 */
|
---|
| 387 | (FP)(_kernel_core_int_entry), /* 116 */
|
---|
| 388 | (FP)(_kernel_core_int_entry), /* 117 */
|
---|
| 389 | (FP)(_kernel_core_int_entry), /* 118 */
|
---|
| 390 | (FP)(_kernel_core_int_entry), /* 119 */
|
---|
| 391 | (FP)(_kernel_core_int_entry), /* 120 */
|
---|
| 392 | (FP)(_kernel_core_int_entry), /* 121 */
|
---|
| 393 |
|
---|
| 394 | };
|
---|
| 395 |
|
---|
| 396 |
|
---|
| 397 | const FP _kernel_exc_tbl[] =
|
---|
| 398 | {
|
---|
| 399 | (FP)(_kernel_default_exc_handler), /* 0 */
|
---|
| 400 | (FP)(_kernel_default_exc_handler), /* 1 */
|
---|
| 401 | (FP)(_kernel_default_exc_handler), /* 2 */
|
---|
| 402 | (FP)(_kernel_default_exc_handler), /* 3 */
|
---|
| 403 | (FP)(_kernel_default_exc_handler), /* 4 */
|
---|
| 404 | (FP)(_kernel_default_exc_handler), /* 5 */
|
---|
| 405 | (FP)(cpuexc_handler), /* 6 */
|
---|
| 406 | (FP)(_kernel_default_exc_handler), /* 7 */
|
---|
| 407 | (FP)(_kernel_default_exc_handler), /* 8 */
|
---|
| 408 | (FP)(_kernel_default_exc_handler), /* 9 */
|
---|
| 409 | (FP)(_kernel_default_exc_handler), /* 10 */
|
---|
| 410 | (FP)(_kernel_default_exc_handler), /* 11 */
|
---|
| 411 | (FP)(_kernel_default_exc_handler), /* 12 */
|
---|
| 412 | (FP)(_kernel_default_exc_handler), /* 13 */
|
---|
| 413 | (FP)(_kernel_default_exc_handler), /* 14 */
|
---|
| 414 | (FP)(target_timer_handler), /* 15 */
|
---|
| 415 | (FP)(_kernel_default_int_handler), /* 16 */
|
---|
| 416 | (FP)(_kernel_default_int_handler), /* 17 */
|
---|
| 417 | (FP)(_kernel_default_int_handler), /* 18 */
|
---|
| 418 | (FP)(_kernel_default_int_handler), /* 19 */
|
---|
| 419 | (FP)(_kernel_default_int_handler), /* 20 */
|
---|
| 420 | (FP)(_kernel_default_int_handler), /* 21 */
|
---|
| 421 | (FP)(_kernel_default_int_handler), /* 22 */
|
---|
| 422 | (FP)(_kernel_default_int_handler), /* 23 */
|
---|
| 423 | (FP)(_kernel_default_int_handler), /* 24 */
|
---|
| 424 | (FP)(_kernel_default_int_handler), /* 25 */
|
---|
| 425 | (FP)(_kernel_default_int_handler), /* 26 */
|
---|
| 426 | (FP)(_kernel_default_int_handler), /* 27 */
|
---|
| 427 | (FP)(_kernel_default_int_handler), /* 28 */
|
---|
| 428 | (FP)(_kernel_default_int_handler), /* 29 */
|
---|
| 429 | (FP)(_kernel_default_int_handler), /* 30 */
|
---|
| 430 | (FP)(_kernel_default_int_handler), /* 31 */
|
---|
| 431 | (FP)(_kernel_default_int_handler), /* 32 */
|
---|
| 432 | (FP)(_kernel_default_int_handler), /* 33 */
|
---|
| 433 | (FP)(_kernel_default_int_handler), /* 34 */
|
---|
| 434 | (FP)(_kernel_default_int_handler), /* 35 */
|
---|
| 435 | (FP)(_kernel_default_int_handler), /* 36 */
|
---|
| 436 | (FP)(_kernel_default_int_handler), /* 37 */
|
---|
| 437 | (FP)(_kernel_default_int_handler), /* 38 */
|
---|
| 438 | (FP)(_kernel_default_int_handler), /* 39 */
|
---|
| 439 | (FP)(_kernel_default_int_handler), /* 40 */
|
---|
| 440 | (FP)(_kernel_default_int_handler), /* 41 */
|
---|
| 441 | (FP)(_kernel_default_int_handler), /* 42 */
|
---|
| 442 | (FP)(_kernel_default_int_handler), /* 43 */
|
---|
| 443 | (FP)(_kernel_default_int_handler), /* 44 */
|
---|
| 444 | (FP)(_kernel_default_int_handler), /* 45 */
|
---|
| 445 | (FP)(_kernel_default_int_handler), /* 46 */
|
---|
| 446 | (FP)(_kernel_default_int_handler), /* 47 */
|
---|
| 447 | (FP)(_kernel_default_int_handler), /* 48 */
|
---|
| 448 | (FP)(_kernel_default_int_handler), /* 49 */
|
---|
| 449 | (FP)(_kernel_default_int_handler), /* 50 */
|
---|
| 450 | (FP)(_kernel_default_int_handler), /* 51 */
|
---|
| 451 | (FP)(_kernel_default_int_handler), /* 52 */
|
---|
| 452 | (FP)(_kernel_default_int_handler), /* 53 */
|
---|
| 453 | (FP)(_kernel_default_int_handler), /* 54 */
|
---|
| 454 | (FP)(_kernel_default_int_handler), /* 55 */
|
---|
| 455 | (FP)(_kernel_default_int_handler), /* 56 */
|
---|
| 456 | (FP)(_kernel_default_int_handler), /* 57 */
|
---|
| 457 | (FP)(_kernel_default_int_handler), /* 58 */
|
---|
| 458 | (FP)(_kernel_default_int_handler), /* 59 */
|
---|
| 459 | (FP)(_kernel_default_int_handler), /* 60 */
|
---|
| 460 | (FP)(_kernel_default_int_handler), /* 61 */
|
---|
| 461 | (FP)(_kernel_default_int_handler), /* 62 */
|
---|
| 462 | (FP)(_kernel_default_int_handler), /* 63 */
|
---|
| 463 | (FP)(_kernel_default_int_handler), /* 64 */
|
---|
| 464 | (FP)(_kernel_inthdr_65), /* 65 */
|
---|
| 465 | (FP)(_kernel_default_int_handler), /* 66 */
|
---|
| 466 | (FP)(_kernel_default_int_handler), /* 67 */
|
---|
| 467 | (FP)(_kernel_default_int_handler), /* 68 */
|
---|
| 468 | (FP)(_kernel_default_int_handler), /* 69 */
|
---|
| 469 | (FP)(_kernel_default_int_handler), /* 70 */
|
---|
| 470 | (FP)(_kernel_default_int_handler), /* 71 */
|
---|
| 471 | (FP)(_kernel_default_int_handler), /* 72 */
|
---|
| 472 | (FP)(_kernel_default_int_handler), /* 73 */
|
---|
| 473 | (FP)(_kernel_default_int_handler), /* 74 */
|
---|
| 474 | (FP)(_kernel_default_int_handler), /* 75 */
|
---|
| 475 | (FP)(_kernel_default_int_handler), /* 76 */
|
---|
| 476 | (FP)(_kernel_default_int_handler), /* 77 */
|
---|
| 477 | (FP)(_kernel_default_int_handler), /* 78 */
|
---|
| 478 | (FP)(_kernel_default_int_handler), /* 79 */
|
---|
| 479 | (FP)(_kernel_default_int_handler), /* 80 */
|
---|
| 480 | (FP)(_kernel_default_int_handler), /* 81 */
|
---|
| 481 | (FP)(_kernel_default_int_handler), /* 82 */
|
---|
| 482 | (FP)(_kernel_default_int_handler), /* 83 */
|
---|
| 483 | (FP)(_kernel_default_int_handler), /* 84 */
|
---|
| 484 | (FP)(_kernel_default_int_handler), /* 85 */
|
---|
| 485 | (FP)(_kernel_default_int_handler), /* 86 */
|
---|
| 486 | (FP)(_kernel_default_int_handler), /* 87 */
|
---|
| 487 | (FP)(_kernel_default_int_handler), /* 88 */
|
---|
| 488 | (FP)(_kernel_default_int_handler), /* 89 */
|
---|
| 489 | (FP)(_kernel_default_int_handler), /* 90 */
|
---|
| 490 | (FP)(_kernel_default_int_handler), /* 91 */
|
---|
| 491 | (FP)(_kernel_default_int_handler), /* 92 */
|
---|
| 492 | (FP)(_kernel_default_int_handler), /* 93 */
|
---|
| 493 | (FP)(_kernel_default_int_handler), /* 94 */
|
---|
| 494 | (FP)(_kernel_default_int_handler), /* 95 */
|
---|
| 495 | (FP)(_kernel_default_int_handler), /* 96 */
|
---|
| 496 | (FP)(_kernel_default_int_handler), /* 97 */
|
---|
| 497 | (FP)(_kernel_default_int_handler), /* 98 */
|
---|
| 498 | (FP)(_kernel_default_int_handler), /* 99 */
|
---|
| 499 | (FP)(_kernel_default_int_handler), /* 100 */
|
---|
| 500 | (FP)(_kernel_default_int_handler), /* 101 */
|
---|
| 501 | (FP)(_kernel_default_int_handler), /* 102 */
|
---|
| 502 | (FP)(_kernel_default_int_handler), /* 103 */
|
---|
| 503 | (FP)(_kernel_default_int_handler), /* 104 */
|
---|
| 504 | (FP)(_kernel_default_int_handler), /* 105 */
|
---|
| 505 | (FP)(_kernel_default_int_handler), /* 106 */
|
---|
| 506 | (FP)(_kernel_default_int_handler), /* 107 */
|
---|
| 507 | (FP)(_kernel_default_int_handler), /* 108 */
|
---|
| 508 | (FP)(_kernel_default_int_handler), /* 109 */
|
---|
| 509 | (FP)(_kernel_default_int_handler), /* 110 */
|
---|
| 510 | (FP)(_kernel_default_int_handler), /* 111 */
|
---|
| 511 | (FP)(_kernel_default_int_handler), /* 112 */
|
---|
| 512 | (FP)(_kernel_default_int_handler), /* 113 */
|
---|
| 513 | (FP)(_kernel_default_int_handler), /* 114 */
|
---|
| 514 | (FP)(_kernel_default_int_handler), /* 115 */
|
---|
| 515 | (FP)(_kernel_default_int_handler), /* 116 */
|
---|
| 516 | (FP)(_kernel_default_int_handler), /* 117 */
|
---|
| 517 | (FP)(_kernel_default_int_handler), /* 118 */
|
---|
| 518 | (FP)(_kernel_default_int_handler), /* 119 */
|
---|
| 519 | (FP)(_kernel_default_int_handler), /* 120 */
|
---|
| 520 | (FP)(_kernel_default_int_handler), /* 121 */
|
---|
| 521 |
|
---|
| 522 | };
|
---|
| 523 |
|
---|
| 524 | const uint32_t _kernel_bitpat_cfgint[8] = {
|
---|
| 525 | UINT32_C(0x00008000),
|
---|
| 526 | UINT32_C(0x00000000),
|
---|
| 527 | UINT32_C(0x00000002),
|
---|
| 528 | UINT32_C(0x00000000),
|
---|
| 529 | UINT32_C(0x00000000),
|
---|
| 530 | UINT32_C(0x00000000),
|
---|
| 531 | UINT32_C(0x00000000),
|
---|
| 532 | UINT32_C(0x00000000),
|
---|
| 533 |
|
---|
| 534 | };
|
---|
| 535 |
|
---|
| 536 | const uint32_t _kernel_int_iipm_tbl[] = {
|
---|
| 537 | UINT32_C(0x00000000), /* 0x000 */
|
---|
| 538 | UINT32_C(0x00000000), /* 0x001 */
|
---|
| 539 | UINT32_C(0x00000000), /* 0x002 */
|
---|
| 540 | UINT32_C(0x00000000), /* 0x003 */
|
---|
| 541 | UINT32_C(0x00000000), /* 0x004 */
|
---|
| 542 | UINT32_C(0x00000000), /* 0x005 */
|
---|
| 543 | UINT32_C(0x00000000), /* 0x006 */
|
---|
| 544 | UINT32_C(0x00000000), /* 0x007 */
|
---|
| 545 | UINT32_C(0x00000000), /* 0x008 */
|
---|
| 546 | UINT32_C(0x00000000), /* 0x009 */
|
---|
| 547 | UINT32_C(0x00000000), /* 0x00a */
|
---|
| 548 | UINT32_C(0x00000000), /* 0x00b */
|
---|
| 549 | UINT32_C(0x00000000), /* 0x00c */
|
---|
| 550 | UINT32_C(0x00000000), /* 0x00d */
|
---|
| 551 | UINT32_C(0x00000000), /* 0x00e */
|
---|
| 552 | UINT32_C(0x000000a0), /* 0x00f */
|
---|
| 553 | UINT32_C(0x00000000), /* 0x010 */
|
---|
| 554 | UINT32_C(0x00000000), /* 0x011 */
|
---|
| 555 | UINT32_C(0x00000000), /* 0x012 */
|
---|
| 556 | UINT32_C(0x00000000), /* 0x013 */
|
---|
| 557 | UINT32_C(0x00000000), /* 0x014 */
|
---|
| 558 | UINT32_C(0x00000000), /* 0x015 */
|
---|
| 559 | UINT32_C(0x00000000), /* 0x016 */
|
---|
| 560 | UINT32_C(0x00000000), /* 0x017 */
|
---|
| 561 | UINT32_C(0x00000000), /* 0x018 */
|
---|
| 562 | UINT32_C(0x00000000), /* 0x019 */
|
---|
| 563 | UINT32_C(0x00000000), /* 0x01a */
|
---|
| 564 | UINT32_C(0x00000000), /* 0x01b */
|
---|
| 565 | UINT32_C(0x00000000), /* 0x01c */
|
---|
| 566 | UINT32_C(0x00000000), /* 0x01d */
|
---|
| 567 | UINT32_C(0x00000000), /* 0x01e */
|
---|
| 568 | UINT32_C(0x00000000), /* 0x01f */
|
---|
| 569 | UINT32_C(0x00000000), /* 0x020 */
|
---|
| 570 | UINT32_C(0x00000000), /* 0x021 */
|
---|
| 571 | UINT32_C(0x00000000), /* 0x022 */
|
---|
| 572 | UINT32_C(0x00000000), /* 0x023 */
|
---|
| 573 | UINT32_C(0x00000000), /* 0x024 */
|
---|
| 574 | UINT32_C(0x00000000), /* 0x025 */
|
---|
| 575 | UINT32_C(0x00000000), /* 0x026 */
|
---|
| 576 | UINT32_C(0x00000000), /* 0x027 */
|
---|
| 577 | UINT32_C(0x00000000), /* 0x028 */
|
---|
| 578 | UINT32_C(0x00000000), /* 0x029 */
|
---|
| 579 | UINT32_C(0x00000000), /* 0x02a */
|
---|
| 580 | UINT32_C(0x00000000), /* 0x02b */
|
---|
| 581 | UINT32_C(0x00000000), /* 0x02c */
|
---|
| 582 | UINT32_C(0x00000000), /* 0x02d */
|
---|
| 583 | UINT32_C(0x00000000), /* 0x02e */
|
---|
| 584 | UINT32_C(0x00000000), /* 0x02f */
|
---|
| 585 | UINT32_C(0x00000000), /* 0x030 */
|
---|
| 586 | UINT32_C(0x00000000), /* 0x031 */
|
---|
| 587 | UINT32_C(0x00000000), /* 0x032 */
|
---|
| 588 | UINT32_C(0x00000000), /* 0x033 */
|
---|
| 589 | UINT32_C(0x00000000), /* 0x034 */
|
---|
| 590 | UINT32_C(0x00000000), /* 0x035 */
|
---|
| 591 | UINT32_C(0x00000000), /* 0x036 */
|
---|
| 592 | UINT32_C(0x00000000), /* 0x037 */
|
---|
| 593 | UINT32_C(0x00000000), /* 0x038 */
|
---|
| 594 | UINT32_C(0x00000000), /* 0x039 */
|
---|
| 595 | UINT32_C(0x00000000), /* 0x03a */
|
---|
| 596 | UINT32_C(0x00000000), /* 0x03b */
|
---|
| 597 | UINT32_C(0x00000000), /* 0x03c */
|
---|
| 598 | UINT32_C(0x00000000), /* 0x03d */
|
---|
| 599 | UINT32_C(0x00000000), /* 0x03e */
|
---|
| 600 | UINT32_C(0x00000000), /* 0x03f */
|
---|
| 601 | UINT32_C(0x00000000), /* 0x040 */
|
---|
| 602 | UINT32_C(0x000000d0), /* 0x041 */
|
---|
| 603 | UINT32_C(0x00000000), /* 0x042 */
|
---|
| 604 | UINT32_C(0x00000000), /* 0x043 */
|
---|
| 605 | UINT32_C(0x00000000), /* 0x044 */
|
---|
| 606 | UINT32_C(0x00000000), /* 0x045 */
|
---|
| 607 | UINT32_C(0x00000000), /* 0x046 */
|
---|
| 608 | UINT32_C(0x00000000), /* 0x047 */
|
---|
| 609 | UINT32_C(0x00000000), /* 0x048 */
|
---|
| 610 | UINT32_C(0x00000000), /* 0x049 */
|
---|
| 611 | UINT32_C(0x00000000), /* 0x04a */
|
---|
| 612 | UINT32_C(0x00000000), /* 0x04b */
|
---|
| 613 | UINT32_C(0x00000000), /* 0x04c */
|
---|
| 614 | UINT32_C(0x00000000), /* 0x04d */
|
---|
| 615 | UINT32_C(0x00000000), /* 0x04e */
|
---|
| 616 | UINT32_C(0x00000000), /* 0x04f */
|
---|
| 617 | UINT32_C(0x00000000), /* 0x050 */
|
---|
| 618 | UINT32_C(0x00000000), /* 0x051 */
|
---|
| 619 | UINT32_C(0x00000000), /* 0x052 */
|
---|
| 620 | UINT32_C(0x00000000), /* 0x053 */
|
---|
| 621 | UINT32_C(0x00000000), /* 0x054 */
|
---|
| 622 | UINT32_C(0x00000000), /* 0x055 */
|
---|
| 623 | UINT32_C(0x00000000), /* 0x056 */
|
---|
| 624 | UINT32_C(0x00000000), /* 0x057 */
|
---|
| 625 | UINT32_C(0x00000000), /* 0x058 */
|
---|
| 626 | UINT32_C(0x00000000), /* 0x059 */
|
---|
| 627 | UINT32_C(0x00000000), /* 0x05a */
|
---|
| 628 | UINT32_C(0x00000000), /* 0x05b */
|
---|
| 629 | UINT32_C(0x00000000), /* 0x05c */
|
---|
| 630 | UINT32_C(0x00000000), /* 0x05d */
|
---|
| 631 | UINT32_C(0x00000000), /* 0x05e */
|
---|
| 632 | UINT32_C(0x00000000), /* 0x05f */
|
---|
| 633 | UINT32_C(0x00000000), /* 0x060 */
|
---|
| 634 | UINT32_C(0x00000000), /* 0x061 */
|
---|
| 635 | UINT32_C(0x00000000), /* 0x062 */
|
---|
| 636 | UINT32_C(0x00000000), /* 0x063 */
|
---|
| 637 | UINT32_C(0x00000000), /* 0x064 */
|
---|
| 638 | UINT32_C(0x00000000), /* 0x065 */
|
---|
| 639 | UINT32_C(0x00000000), /* 0x066 */
|
---|
| 640 | UINT32_C(0x00000000), /* 0x067 */
|
---|
| 641 | UINT32_C(0x00000000), /* 0x068 */
|
---|
| 642 | UINT32_C(0x00000000), /* 0x069 */
|
---|
| 643 | UINT32_C(0x00000000), /* 0x06a */
|
---|
| 644 | UINT32_C(0x00000000), /* 0x06b */
|
---|
| 645 | UINT32_C(0x00000000), /* 0x06c */
|
---|
| 646 | UINT32_C(0x00000000), /* 0x06d */
|
---|
| 647 | UINT32_C(0x00000000), /* 0x06e */
|
---|
| 648 | UINT32_C(0x00000000), /* 0x06f */
|
---|
| 649 | UINT32_C(0x00000000), /* 0x070 */
|
---|
| 650 | UINT32_C(0x00000000), /* 0x071 */
|
---|
| 651 | UINT32_C(0x00000000), /* 0x072 */
|
---|
| 652 | UINT32_C(0x00000000), /* 0x073 */
|
---|
| 653 | UINT32_C(0x00000000), /* 0x074 */
|
---|
| 654 | UINT32_C(0x00000000), /* 0x075 */
|
---|
| 655 | UINT32_C(0x00000000), /* 0x076 */
|
---|
| 656 | UINT32_C(0x00000000), /* 0x077 */
|
---|
| 657 | UINT32_C(0x00000000), /* 0x078 */
|
---|
| 658 | UINT32_C(0x00000000), /* 0x079 */
|
---|
| 659 |
|
---|
| 660 | };
|
---|
| 661 |
|
---|