Some bugs in latest RTEMS

Круглов Сергей skruglov at nm.ru
Mon May 25 11:54:12 UTC 2015


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

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20150525/c3462aa8/attachment-0003.html>


More information about the bugs mailing list