I found some bugs:
1. In imfs_memfile.c
function IMFS_memfile_extend
block declared: unsigned int   block, and after block— work incorrect (if 
block = 0).
for ( ; block>=old_blocks ; block-- ) {
  IMFS_memfile_remove_block( memfile, block );
}
 
Must be declare int block;
 
2. If I configure rtems with USE_TICKS_FOR_STATISTICS=1
Incorrect work function  RTEMS_INLINE_ROUTINE void 
_Thread_Update_cpu_time_used in file threadimpl.h
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
, but cpu_time_used – int32_t
 
Must be:
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
  _Timestamp_Add_to( &executing->cpu_time_used, &ran );
#else
  executing->cpu_time_used += _Timestamp_To_ticks(&ran);
#endif

--
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to