comparison packages/hal/common/current/src/dbg-threads-syscall.c @ 36:e97d78785e2d ecos-sw-1999-09-12

Merge from eCos master repository on 1999-09-12-15:40:34-BST
author jlarmour
date Sun, 12 Sep 1999 15:26:05 +0000
parents d376b777e2ce
children c38311975d4f
comparison
equal deleted inserted replaced
35:d722a005a6c3 36:e97d78785e2d
177 #endif 177 #endif
178 178
179 int dbg_currthread_id(void) 179 int dbg_currthread_id(void)
180 { 180 {
181 threadref ref; 181 threadref ref;
182 dbg_currthread( &ref ); 182 if( dbg_currthread( &ref ) )
183 183 return (cyg_uint16)swap32(((unsigned long *)ref)[1]);
184 return (cyg_uint16)swap32(((unsigned long *)ref)[1]); 184 else return 0;
185 } 185 }
186 186
187 #endif 187 #endif