[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_53(void)
|
---|
| 152 | {
|
---|
| 153 | i_begin_int(53);
|
---|
| 154 | LOG_ISR_ENTER(53);
|
---|
| 155 | ((ISR)(sio_isr))((intptr_t)(SIO_PORTID));
|
---|
| 156 | LOG_ISR_LEAVE(53);
|
---|
| 157 | i_end_int(53);
|
---|
| 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(53, 53, _kernel_inthdr_53)
|
---|
| 165 |
|
---|
| 166 | const INHINIB _kernel_inhinib_table[TNUM_INHNO] = {
|
---|
| 167 | { (INHNO_TIMER), (TA_NULL), (FP)(INT_ENTRY(INHNO_TIMER, target_timer_handler)) },
|
---|
| 168 | { (53), (TA_NULL), (FP)(INT_ENTRY(53, _kernel_inthdr_53)) }
|
---|
| 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 |
|
---|
| 349 | };
|
---|
| 350 |
|
---|
| 351 |
|
---|
| 352 | const FP _kernel_exc_tbl[] =
|
---|
| 353 | {
|
---|
| 354 | (FP)(_kernel_default_exc_handler), /* 0 */
|
---|
| 355 | (FP)(_kernel_default_exc_handler), /* 1 */
|
---|
| 356 | (FP)(_kernel_default_exc_handler), /* 2 */
|
---|
| 357 | (FP)(_kernel_default_exc_handler), /* 3 */
|
---|
| 358 | (FP)(_kernel_default_exc_handler), /* 4 */
|
---|
| 359 | (FP)(_kernel_default_exc_handler), /* 5 */
|
---|
| 360 | (FP)(cpuexc_handler), /* 6 */
|
---|
| 361 | (FP)(_kernel_default_exc_handler), /* 7 */
|
---|
| 362 | (FP)(_kernel_default_exc_handler), /* 8 */
|
---|
| 363 | (FP)(_kernel_default_exc_handler), /* 9 */
|
---|
| 364 | (FP)(_kernel_default_exc_handler), /* 10 */
|
---|
| 365 | (FP)(_kernel_default_exc_handler), /* 11 */
|
---|
| 366 | (FP)(_kernel_default_exc_handler), /* 12 */
|
---|
| 367 | (FP)(_kernel_default_exc_handler), /* 13 */
|
---|
| 368 | (FP)(_kernel_default_exc_handler), /* 14 */
|
---|
| 369 | (FP)(target_timer_handler), /* 15 */
|
---|
| 370 | (FP)(_kernel_default_int_handler), /* 16 */
|
---|
| 371 | (FP)(_kernel_default_int_handler), /* 17 */
|
---|
| 372 | (FP)(_kernel_default_int_handler), /* 18 */
|
---|
| 373 | (FP)(_kernel_default_int_handler), /* 19 */
|
---|
| 374 | (FP)(_kernel_default_int_handler), /* 20 */
|
---|
| 375 | (FP)(_kernel_default_int_handler), /* 21 */
|
---|
| 376 | (FP)(_kernel_default_int_handler), /* 22 */
|
---|
| 377 | (FP)(_kernel_default_int_handler), /* 23 */
|
---|
| 378 | (FP)(_kernel_default_int_handler), /* 24 */
|
---|
| 379 | (FP)(_kernel_default_int_handler), /* 25 */
|
---|
| 380 | (FP)(_kernel_default_int_handler), /* 26 */
|
---|
| 381 | (FP)(_kernel_default_int_handler), /* 27 */
|
---|
| 382 | (FP)(_kernel_default_int_handler), /* 28 */
|
---|
| 383 | (FP)(_kernel_default_int_handler), /* 29 */
|
---|
| 384 | (FP)(_kernel_default_int_handler), /* 30 */
|
---|
| 385 | (FP)(_kernel_default_int_handler), /* 31 */
|
---|
| 386 | (FP)(_kernel_default_int_handler), /* 32 */
|
---|
| 387 | (FP)(_kernel_default_int_handler), /* 33 */
|
---|
| 388 | (FP)(_kernel_default_int_handler), /* 34 */
|
---|
| 389 | (FP)(_kernel_default_int_handler), /* 35 */
|
---|
| 390 | (FP)(_kernel_default_int_handler), /* 36 */
|
---|
| 391 | (FP)(_kernel_default_int_handler), /* 37 */
|
---|
| 392 | (FP)(_kernel_default_int_handler), /* 38 */
|
---|
| 393 | (FP)(_kernel_default_int_handler), /* 39 */
|
---|
| 394 | (FP)(_kernel_default_int_handler), /* 40 */
|
---|
| 395 | (FP)(_kernel_default_int_handler), /* 41 */
|
---|
| 396 | (FP)(_kernel_default_int_handler), /* 42 */
|
---|
| 397 | (FP)(_kernel_default_int_handler), /* 43 */
|
---|
| 398 | (FP)(_kernel_default_int_handler), /* 44 */
|
---|
| 399 | (FP)(_kernel_default_int_handler), /* 45 */
|
---|
| 400 | (FP)(_kernel_default_int_handler), /* 46 */
|
---|
| 401 | (FP)(_kernel_default_int_handler), /* 47 */
|
---|
| 402 | (FP)(_kernel_default_int_handler), /* 48 */
|
---|
| 403 | (FP)(_kernel_default_int_handler), /* 49 */
|
---|
| 404 | (FP)(_kernel_default_int_handler), /* 50 */
|
---|
| 405 | (FP)(_kernel_default_int_handler), /* 51 */
|
---|
| 406 | (FP)(_kernel_default_int_handler), /* 52 */
|
---|
| 407 | (FP)(_kernel_inthdr_53), /* 53 */
|
---|
| 408 | (FP)(_kernel_default_int_handler), /* 54 */
|
---|
| 409 | (FP)(_kernel_default_int_handler), /* 55 */
|
---|
| 410 | (FP)(_kernel_default_int_handler), /* 56 */
|
---|
| 411 | (FP)(_kernel_default_int_handler), /* 57 */
|
---|
| 412 | (FP)(_kernel_default_int_handler), /* 58 */
|
---|
| 413 | (FP)(_kernel_default_int_handler), /* 59 */
|
---|
| 414 | (FP)(_kernel_default_int_handler), /* 60 */
|
---|
| 415 | (FP)(_kernel_default_int_handler), /* 61 */
|
---|
| 416 | (FP)(_kernel_default_int_handler), /* 62 */
|
---|
| 417 | (FP)(_kernel_default_int_handler), /* 63 */
|
---|
| 418 | (FP)(_kernel_default_int_handler), /* 64 */
|
---|
| 419 | (FP)(_kernel_default_int_handler), /* 65 */
|
---|
| 420 | (FP)(_kernel_default_int_handler), /* 66 */
|
---|
| 421 | (FP)(_kernel_default_int_handler), /* 67 */
|
---|
| 422 | (FP)(_kernel_default_int_handler), /* 68 */
|
---|
| 423 | (FP)(_kernel_default_int_handler), /* 69 */
|
---|
| 424 | (FP)(_kernel_default_int_handler), /* 70 */
|
---|
| 425 | (FP)(_kernel_default_int_handler), /* 71 */
|
---|
| 426 | (FP)(_kernel_default_int_handler), /* 72 */
|
---|
| 427 | (FP)(_kernel_default_int_handler), /* 73 */
|
---|
| 428 | (FP)(_kernel_default_int_handler), /* 74 */
|
---|
| 429 | (FP)(_kernel_default_int_handler), /* 75 */
|
---|
| 430 | (FP)(_kernel_default_int_handler), /* 76 */
|
---|
| 431 |
|
---|
| 432 | };
|
---|
| 433 |
|
---|
| 434 | const uint32_t _kernel_bitpat_cfgint[5] = {
|
---|
| 435 | UINT32_C(0x00008000),
|
---|
| 436 | UINT32_C(0x00200000),
|
---|
| 437 | UINT32_C(0x00000000),
|
---|
| 438 | UINT32_C(0x00000000),
|
---|
| 439 | UINT32_C(0x00000000),
|
---|
| 440 |
|
---|
| 441 | };
|
---|
| 442 |
|
---|
| 443 | const uint32_t _kernel_int_iipm_tbl[] = {
|
---|
| 444 | UINT32_C(0x00000000), /* 0x000 */
|
---|
| 445 | UINT32_C(0x00000000), /* 0x001 */
|
---|
| 446 | UINT32_C(0x00000000), /* 0x002 */
|
---|
| 447 | UINT32_C(0x00000000), /* 0x003 */
|
---|
| 448 | UINT32_C(0x00000000), /* 0x004 */
|
---|
| 449 | UINT32_C(0x00000000), /* 0x005 */
|
---|
| 450 | UINT32_C(0x00000000), /* 0x006 */
|
---|
| 451 | UINT32_C(0x00000000), /* 0x007 */
|
---|
| 452 | UINT32_C(0x00000000), /* 0x008 */
|
---|
| 453 | UINT32_C(0x00000000), /* 0x009 */
|
---|
| 454 | UINT32_C(0x00000000), /* 0x00a */
|
---|
| 455 | UINT32_C(0x00000000), /* 0x00b */
|
---|
| 456 | UINT32_C(0x00000000), /* 0x00c */
|
---|
| 457 | UINT32_C(0x00000000), /* 0x00d */
|
---|
| 458 | UINT32_C(0x00000000), /* 0x00e */
|
---|
| 459 | UINT32_C(0x000000a0), /* 0x00f */
|
---|
| 460 | UINT32_C(0x00000000), /* 0x010 */
|
---|
| 461 | UINT32_C(0x00000000), /* 0x011 */
|
---|
| 462 | UINT32_C(0x00000000), /* 0x012 */
|
---|
| 463 | UINT32_C(0x00000000), /* 0x013 */
|
---|
| 464 | UINT32_C(0x00000000), /* 0x014 */
|
---|
| 465 | UINT32_C(0x00000000), /* 0x015 */
|
---|
| 466 | UINT32_C(0x00000000), /* 0x016 */
|
---|
| 467 | UINT32_C(0x00000000), /* 0x017 */
|
---|
| 468 | UINT32_C(0x00000000), /* 0x018 */
|
---|
| 469 | UINT32_C(0x00000000), /* 0x019 */
|
---|
| 470 | UINT32_C(0x00000000), /* 0x01a */
|
---|
| 471 | UINT32_C(0x00000000), /* 0x01b */
|
---|
| 472 | UINT32_C(0x00000000), /* 0x01c */
|
---|
| 473 | UINT32_C(0x00000000), /* 0x01d */
|
---|
| 474 | UINT32_C(0x00000000), /* 0x01e */
|
---|
| 475 | UINT32_C(0x00000000), /* 0x01f */
|
---|
| 476 | UINT32_C(0x00000000), /* 0x020 */
|
---|
| 477 | UINT32_C(0x00000000), /* 0x021 */
|
---|
| 478 | UINT32_C(0x00000000), /* 0x022 */
|
---|
| 479 | UINT32_C(0x00000000), /* 0x023 */
|
---|
| 480 | UINT32_C(0x00000000), /* 0x024 */
|
---|
| 481 | UINT32_C(0x00000000), /* 0x025 */
|
---|
| 482 | UINT32_C(0x00000000), /* 0x026 */
|
---|
| 483 | UINT32_C(0x00000000), /* 0x027 */
|
---|
| 484 | UINT32_C(0x00000000), /* 0x028 */
|
---|
| 485 | UINT32_C(0x00000000), /* 0x029 */
|
---|
| 486 | UINT32_C(0x00000000), /* 0x02a */
|
---|
| 487 | UINT32_C(0x00000000), /* 0x02b */
|
---|
| 488 | UINT32_C(0x00000000), /* 0x02c */
|
---|
| 489 | UINT32_C(0x00000000), /* 0x02d */
|
---|
| 490 | UINT32_C(0x00000000), /* 0x02e */
|
---|
| 491 | UINT32_C(0x00000000), /* 0x02f */
|
---|
| 492 | UINT32_C(0x00000000), /* 0x030 */
|
---|
| 493 | UINT32_C(0x00000000), /* 0x031 */
|
---|
| 494 | UINT32_C(0x00000000), /* 0x032 */
|
---|
| 495 | UINT32_C(0x00000000), /* 0x033 */
|
---|
| 496 | UINT32_C(0x00000000), /* 0x034 */
|
---|
| 497 | UINT32_C(0x000000d0), /* 0x035 */
|
---|
| 498 | UINT32_C(0x00000000), /* 0x036 */
|
---|
| 499 | UINT32_C(0x00000000), /* 0x037 */
|
---|
| 500 | UINT32_C(0x00000000), /* 0x038 */
|
---|
| 501 | UINT32_C(0x00000000), /* 0x039 */
|
---|
| 502 | UINT32_C(0x00000000), /* 0x03a */
|
---|
| 503 | UINT32_C(0x00000000), /* 0x03b */
|
---|
| 504 | UINT32_C(0x00000000), /* 0x03c */
|
---|
| 505 | UINT32_C(0x00000000), /* 0x03d */
|
---|
| 506 | UINT32_C(0x00000000), /* 0x03e */
|
---|
| 507 | UINT32_C(0x00000000), /* 0x03f */
|
---|
| 508 | UINT32_C(0x00000000), /* 0x040 */
|
---|
| 509 | UINT32_C(0x00000000), /* 0x041 */
|
---|
| 510 | UINT32_C(0x00000000), /* 0x042 */
|
---|
| 511 | UINT32_C(0x00000000), /* 0x043 */
|
---|
| 512 | UINT32_C(0x00000000), /* 0x044 */
|
---|
| 513 | UINT32_C(0x00000000), /* 0x045 */
|
---|
| 514 | UINT32_C(0x00000000), /* 0x046 */
|
---|
| 515 | UINT32_C(0x00000000), /* 0x047 */
|
---|
| 516 | UINT32_C(0x00000000), /* 0x048 */
|
---|
| 517 | UINT32_C(0x00000000), /* 0x049 */
|
---|
| 518 | UINT32_C(0x00000000), /* 0x04a */
|
---|
| 519 | UINT32_C(0x00000000), /* 0x04b */
|
---|
| 520 | UINT32_C(0x00000000), /* 0x04c */
|
---|
| 521 |
|
---|
| 522 | };
|
---|
| 523 |
|
---|