comparison packages/hal/common/current/src/thread-packets.c @ 3236:f415c0531921

NUMREGS replaced by HAL_STUB_REGISTERS_SIZE in thread-packets.c
author vae
date Wed, 25 Apr 2012 19:47:39 +0000
parents 74dbf4c3f2e1
children
comparison
equal deleted inserted replaced
3235:c40674be6da8 3236:f415c0531921
132 target_register_t * dest, 132 target_register_t * dest,
133 target_register_t *src 133 target_register_t *src
134 ) 134 )
135 { 135 {
136 target_register_t * limit ; 136 target_register_t * limit ;
137 limit = dest + NUMREGS ; 137 limit = dest + HAL_STUB_REGISTERS_SIZE ;
138 138
139 while (dest < limit) *dest++ = *src++ ; 139 while (dest < limit) *dest++ = *src++ ;
140 } 140 }
141 141
142 #ifdef __ECOS__ 142 #ifdef __ECOS__
478 char * inbuf, 478 char * inbuf,
479 char * outbuf, 479 char * outbuf,
480 int bufmax) 480 int bufmax)
481 { 481 {
482 threadref thread ; 482 threadref thread ;
483 #if PKT_DEBUG
483 char * base_out ; 484 char * base_out ;
484 base_out = outbuf ; 485 base_out = outbuf ;
485 486 #endif
486 if (dbg_currthread(&thread)) 487 if (dbg_currthread(&thread))
487 { 488 {
488 *outbuf++ = 'Q' ; 489 *outbuf++ = 'Q' ;
489 *outbuf++ = 'C' ; /* FIXME: Is this a reasonable code */ 490 *outbuf++ = 'C' ; /* FIXME: Is this a reasonable code */
490 outbuf = pack_int(outbuf, threadref_to_int(&thread)) ; /* Short form */ 491 outbuf = pack_int(outbuf, threadref_to_int(&thread)) ; /* Short form */