comparison gsm-fw/services/dar/dar_emergency.c @ 310:083f262b7bbe

gsm-fw: disabled DAR links
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 17 Mar 2014 05:56:06 +0000
parents 3c5a17928fda
children a2194416fd7c
comparison
equal deleted inserted replaced
309:a7087f91c752 310:083f262b7bbe
60 60
61 61
62 /**** Extern functions ****/ 62 /**** Extern functions ****/
63 extern void * dar_read_mbox (UINT8 mbox); 63 extern void * dar_read_mbox (UINT8 mbox);
64 64
65 extern void exception(void);
66
67 65
68 /***************************************************************************/ 66 /***************************************************************************/
69 /* */ 67 /* */
70 /* Function Name: dar_process_emergency */ 68 /* Function Name: dar_process_emergency */
71 /* */ 69 /* */
248 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer, 246 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer,
249 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE); 247 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE);
250 } 248 }
251 } 249 }
252 250
253 #ifndef _WINDOWS 251 dar_reset();
254 /* branch to "exception" defined in the int.s*/
255 exception();
256 #endif
257 252
258 } /* dar_exception_arm_undefined */ 253 } /* dar_exception_arm_undefined */
259 254
260 /***************************************************************************/ 255 /***************************************************************************/
261 /* */ 256 /* */
300 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer, 295 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer,
301 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE); 296 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE);
302 } 297 }
303 } 298 }
304 299
305 #ifndef _WINDOWS 300 dar_reset();
306 /* branch to "exception" defined in the int.s*/
307 exception();
308 #endif
309 301
310 } /* dar_exception_arm_swi */ 302 } /* dar_exception_arm_swi */
311 303
312 /***************************************************************************/ 304 /***************************************************************************/
313 /* */ 305 /* */
380 debug_RAM[i] = *debug_register_p; 372 debug_RAM[i] = *debug_register_p;
381 debug_register_p++; 373 debug_register_p++;
382 } 374 }
383 #endif 375 #endif
384 376
385 /* branch to "exception" defined in the int.s*/ 377 dar_reset();
386 exception(); 378 #endif
387 #endif 379
388
389 } /* dar_exception_arm_abort_prefetch */ 380 } /* dar_exception_arm_abort_prefetch */
390 381
391 /***************************************************************************/ 382 /***************************************************************************/
392 /* */ 383 /* */
393 /* Function Name: dar_exception_arm_abort_data */ 384 /* Function Name: dar_exception_arm_abort_data */
460 debug_RAM[i] = *debug_register_p; 451 debug_RAM[i] = *debug_register_p;
461 debug_register_p++; 452 debug_register_p++;
462 } 453 }
463 #endif 454 #endif
464 455
465 /* branch to "exception" defined in the int.s*/ 456 dar_reset();
466 exception();
467 #endif 457 #endif
468 458
469 } /* dar_exception_arm_abort_data */ 459 } /* dar_exception_arm_abort_data */
470 460
471 /***************************************************************************/ 461 /***************************************************************************/
511 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer, 501 dar_gbl_var_p->entity_dar_callback(dar_recovery_buffer,
512 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE); 502 DAR_RECOVERY_DATA_MAX_BUFFER_SIZE);
513 } 503 }
514 } 504 }
515 505
516 #ifndef _WINDOWS 506 dar_reset();
517 /* branch to "exception" defined in the int.s*/
518 exception();
519 #endif
520 507
521 } /* dar_exception_arm_reserved */ 508 } /* dar_exception_arm_reserved */
522 509
523 /****************************************************************************/ 510 /****************************************************************************/
524 /* */ 511 /* */
569 /* THE DAR ENTITY IS DISABLED */ 556 /* THE DAR ENTITY IS DISABLED */
570 /* ************************************************ */ 557 /* ************************************************ */
571 558
572 void dar_exception(int abort_type) 559 void dar_exception(int abort_type)
573 { 560 {
574 #ifndef _WINDOWS 561 /* TODO: emit low-level serial message */
575 /* branch to "exception" defined in the int.s*/ 562 while (1)
576 exception(); 563 ;
577 #endif
578 } /* dar_exception */ 564 } /* dar_exception */
579 565
580 #endif /* #ifdef RVM_DAR_SWE */ 566 #endif /* #ifdef RVM_DAR_SWE */