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