comparison packages/hal/common/current/src/hal_if.c @ 145:2e9a636d9de9 ecos-sw-2000-12-21

Merge from eCos master repository on 2000-12-21-14:18:40-GMT
author jlarmour
date Fri, 22 Dec 2000 02:37:28 +0000
parents 6b5f480c6929
children 25e238959bae
comparison
equal deleted inserted replaced
144:da1052144c56 145:2e9a636d9de9
54 54
55 #include <cyg/hal/hal_diag.h> // Diag IO 55 #include <cyg/hal/hal_diag.h> // Diag IO
56 #include <cyg/hal/hal_misc.h> // User break 56 #include <cyg/hal/hal_misc.h> // User break
57 57
58 #include <cyg/hal/hal_stub.h> // stub functionality 58 #include <cyg/hal/hal_stub.h> // stub functionality
59 #include <cyg/hal/plf_stub.h> // reset entry - FIXME, should be moved
60 59
61 #include <cyg/hal/hal_intr.h> // hal_vsr_table and others 60 #include <cyg/hal/hal_intr.h> // hal_vsr_table and others
62 61
63 62
64 //-------------------------------------------------------------------------- 63 //--------------------------------------------------------------------------
442 // This check only to avoid crash on older stubs in case of unhandled 441 // This check only to avoid crash on older stubs in case of unhandled
443 // interrupts. It is a bit messy, but required in a transition period. 442 // interrupts. It is a bit messy, but required in a transition period.
444 if (CYGNUM_CALL_IF_TABLE_VERSION+1 == CYGACC_CALL_IF_VERSION()) { 443 if (CYGNUM_CALL_IF_TABLE_VERSION+1 == CYGACC_CALL_IF_VERSION()) {
445 gdb_vector = CYGACC_COMM_IF_CONTROL(*chan, __COMMCTL_DBG_ISR_VECTOR); 444 gdb_vector = CYGACC_COMM_IF_CONTROL(*chan, __COMMCTL_DBG_ISR_VECTOR);
446 } 445 }
447 if( vector == gdb_vector ) { 446 if (vector == gdb_vector) {
448 isr_ret = CYGACC_COMM_IF_DBG_ISR(*chan, &ctrlc, vector, data); 447 isr_ret = CYGACC_COMM_IF_DBG_ISR(*chan, &ctrlc, vector, data);
449 if (ctrlc) 448 if (ctrlc)
450 cyg_hal_user_break( (CYG_ADDRWORD *)hal_saved_interrupt_state ); 449 cyg_hal_user_break( (CYG_ADDRWORD *)hal_saved_interrupt_state );
451 return true; 450 return true;
452 } 451 }