comparison packages/hal/common/current/src/hal_misc.c @ 107:7f461c3a372c

Merge from eCos master repository on 2000-07-04-08:04:30-BST
author jlarmour
date Tue, 04 Jul 2000 07:34:17 +0000
parents 5a0cc6c243a9
children 02ea4320376c
comparison
equal deleted inserted replaced
106:78839af9144f 107:7f461c3a372c
95 CYGARC_HAL_GET_RETURN_ADDRESS(__ra); 95 CYGARC_HAL_GET_RETURN_ADDRESS(__ra);
96 96
97 if( regs == NULL ) __pc = __ra; 97 if( regs == NULL ) __pc = __ra;
98 else __pc = sreg->pc; 98 else __pc = sreg->pc;
99 99
100 CYGACC_CALL_IF_INSTALL_BPT_FN()((void *)__pc); 100 CYGACC_CALL_IF_INSTALL_BPT_FN((void *)__pc);
101 101
102 CYGARC_HAL_GET_RETURN_ADDRESS_BACKUP(); 102 CYGARC_HAL_GET_RETURN_ADDRESS_BACKUP();
103 103
104 #else 104 #else
105 105
131 int gdb_vector = -1; 131 int gdb_vector = -1;
132 // This check only to avoid crash on older stubs in case of unhandled 132 // This check only to avoid crash on older stubs in case of unhandled
133 // interrupts. It is a bit messy, but required in a transition period. 133 // interrupts. It is a bit messy, but required in a transition period.
134 if (CYGNUM_CALL_IF_TABLE_VERSION == CYGACC_CALL_IF_VERSION()) { 134 if (CYGNUM_CALL_IF_TABLE_VERSION == CYGACC_CALL_IF_VERSION()) {
135 hal_virtual_comm_table_t* comm = CYGACC_CALL_IF_DEBUG_PROCS(); 135 hal_virtual_comm_table_t* comm = CYGACC_CALL_IF_DEBUG_PROCS();
136 gdb_vector 136 gdb_vector = CYGACC_COMM_IF_CONTROL(*comm, __COMMCTL_DBG_ISR_VECTOR);
137 = CYGACC_COMM_IF_CONTROL(*comm)(CYGACC_COMM_IF_CH_DATA(*comm),
138 __COMMCTL_DBG_ISR_VECTOR);
139 } 137 }
140 if( vector == gdb_vector ) 138 if( vector == gdb_vector )
141 #else 139 #else
142 // Old code using hardwired channels. This should go away eventually. 140 // Old code using hardwired channels. This should go away eventually.
143 if( vector == CYGHWR_HAL_GDB_PORT_VECTOR ) 141 if( vector == CYGHWR_HAL_GDB_PORT_VECTOR )