This was posted to bugs and when I asked for patches, only got them
privately.
Comments?
-------- Original Message --------
Subject: Re: Re: Some bugs in latest RTEMS
Date: Mon, 25 May 2015 08:34:00 -0500
From: Круглов Сергей <skrug...@nm.ru>
To: Joel Sherrill <joel.sherr...@oarcorp.com>
Yes, see attach
Пнд 25 Май 2015 15:29:04 +0300, Joel Sherrill
<joel.sherr...@oarcorp.com> написал:
Can you provide patches?
--
diff -Naur rtems-masterA/cpukit/libfs/src/imfs/imfs_memfile.c rtems-masterB/cpukit/libfs/src/imfs/imfs_memfile.c
--- rtems-masterA/cpukit/libfs/src/imfs/imfs_memfile.c 2015-02-16 10:03:17 +0300
+++ rtems-masterB/cpukit/libfs/src/imfs/imfs_memfile.c 2015-05-25 16:30:07 +0300
@@ -145,9 +145,9 @@
off_t new_length
)
{
- unsigned int block;
- unsigned int new_blocks;
- unsigned int old_blocks;
+ int block;
+ int new_blocks;
+ int old_blocks;
unsigned int offset;
/*
diff -Naur rtems-masterA/cpukit/score/include/rtems/score/threadimpl.h rtems-masterB/cpukit/score/include/rtems/score/threadimpl.h
--- rtems-masterA/cpukit/score/include/rtems/score/threadimpl.h 2015-05-22 09:57:32 +0300
+++ rtems-masterB/cpukit/score/include/rtems/score/threadimpl.h 2015-05-25 16:32:01 +0300
@@ -817,7 +817,11 @@
&ran
);
*time_of_last_context_switch = uptime;
+#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
+#else
+ executing->cpu_time_used += _Timestamp_To_ticks(&ran);
+#endif
}
RTEMS_INLINE_ROUTINE void _Thread_Action_control_initialize(
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel