Changeset 352 for soft/giet_vm/giet_libs
- Timestamp:
- Jun 29, 2014, 1:16:24 PM (10 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/barrier.c
r345 r352 34 34 volatile unsigned int * pcount = (unsigned int *) &barrier->count; 35 35 volatile unsigned int maxcount = barrier->init; 36 volatile unsigned int count ;36 volatile unsigned int count = 0; 37 37 38 38 // parallel decrement barrier counter using atomic instructions LL/SC -
soft/giet_vm/giet_libs/stdio.c
r345 r352 22 22 //////////////////////////////////////////////////////////////////////////////////// 23 23 24 //////////////////////////////////////// 24 /////////////////////////////////////////////////////////////////////// 25 25 static int __printf( char* format, unsigned int channel, va_list* args) 26 26 { … … 329 329 channel, 330 330 0 ); 331 if ( ret < 0 ) giet_exit("error in giet_tty_get s()");331 if ( ret < 0 ) giet_exit("error in giet_tty_getw()"); 332 332 } 333 333 } … … 368 368 channel, 369 369 0 ); 370 if ( ret < 0 ) giet_exit("error in giet_tty_get s()");370 if ( ret < 0 ) giet_exit("error in giet_tty_getw()"); 371 371 } 372 372 // echo character '0' … … 377 377 channel, 378 378 0 ); 379 if ( ret < 0 ) giet_exit( );379 if ( ret < 0 ) giet_exit("error in giet_tty_getw()"); 380 380 381 381 // return 0 value … … 670 670 } 671 671 672 673 672 // Local Variables: 674 673 // tab-width: 4 -
soft/giet_vm/giet_libs/stdio.h
r345 r352 427 427 unsigned int* size ); 428 428 429 430 429 #endif 431 430 -
soft/giet_vm/giet_libs/stdlib.c
r271 r352 37 37 // GCC requires this function. Taken from MutekH. 38 38 //////////////////////////////////////////////////////////////////////////////////////// 39 void * memcpy(void *_dst, const void * _src, unsigned int size) { 39 void * memcpy(void *_dst, const void * _src, unsigned int size) 40 { 40 41 unsigned int * dst = _dst; 41 42 const unsigned int * src = _src; 42 43 if (!((unsigned int) dst & 3) && !((unsigned int) src & 3) ) 43 while (size > 3) { 44 { 45 while (size > 3) 46 { 44 47 *dst++ = *src++; 45 48 size -= 4; 46 49 } 50 } 47 51 48 52 unsigned char *cdst = (unsigned char*)dst; 49 53 unsigned char *csrc = (unsigned char*)src; 50 54 51 while (size--) { 55 while (size--) 56 { 52 57 *cdst++ = *csrc++; 53 58 } … … 57 62 58 63 //////////////////////////////////////////////////////////////////////////////////////// 59 // mem pcy()64 // memset() 60 65 // GCC requires this function. Taken from MutekH. 61 66 //////////////////////////////////////////////////////////////////////////////////////// 62 inline void * memset(void * dst, int s, unsigned int count) { 67 inline void * memset(void * dst, int s, unsigned int count) 68 { 63 69 char * a = (char *) dst; 64 while (count--){ 70 while (count--) 71 { 65 72 *a++ = (char)s; 66 73 }
Note: See TracChangeset
for help on using the changeset viewer.