[leon_sparc] Re: RTEMS - rtems_clock_get_uptime() fails during timer tick

Daniel Hellstrom daniel at gaisler.com
Mon Feb 28 10:07:24 UTC 2011

Hello Rolf,

Thank you for bring this into light, and thanks for the patch. I can't 
remember that I have seen this issue before, in that case I should have 
already included the patch. I will take a look at it and add it to our 
new GPTIMER driver as well, it will be part of the next release. The 
GPTIMER pending bit has been changed in newer hardware as well, which I 
must take into account, the functionality is the same however the bit is 
cleared writing a one to it instead, I will try to autoprobe that as well.

When the GPTIMER is configured using shared interrupts the pending bit 
in GPTIMER is already cleared.

Since RTEMS 4.10.0 is out now, we will be syncing against that as soon 
possible. At the same time I'm hoping that I will be able to submit a 
few patches to the official sources as well.

Daniel Hellstrom

rolfschroedter wrote:

> In rtems-users at rtems.org <mailto:rtems-users%40rtems.org> It was 
> pointed out that there is also a patch for ERC32/LEON2 available.
> The general idea (Joe Sherrill) is that the nanoseconds handler shall 
> report the nanoseconds elapsed since the last call of 
> rtems_clock_tick(). If the timer interrupt is pending, this value 
> could be larger than one tick period.
> http://www.rtems.com/ml/rtems-users/2009/march/msg00210.html
> Could these patches please be added to the LEON BSP's ?
> Regards,
> Rolf
> __._,_.___
> Reply to sender 
> <mailto:rolf.schroedter at dlr.de?subject=Re%3A%20RTEMS%20-%20rtems_clock_get_uptime%28%29%20fails%20during%20timer%20tick> 
> | Reply to group 
> <mailto:leon_sparc at yahoogroups.com?subject=Re%3A%20RTEMS%20-%20rtems_clock_get_uptime%28%29%20fails%20during%20timer%20tick> 
> | Reply via web post 
> <http://groups.yahoo.com/group/leon_sparc/post;_ylc=X3oDMTJxNXM5cmk4BF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BG1zZ0lkAzE5NjEyBHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTI5ODYzODkxNQ--?act=reply&messageNum=19612> 
> | Start a New Topic 
> <http://groups.yahoo.com/group/leon_sparc/post;_ylc=X3oDMTJlMXJkc3QwBF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTI5ODYzODkxNQ--> 
> Messages in this topic 
> <http://groups.yahoo.com/group/leon_sparc/message/19599;_ylc=X3oDMTM2azltOGRyBF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BG1zZ0lkAzE5NjEyBHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTI5ODYzODkxNQR0cGNJZAMxOTU5OQ--> 
> (3)
> Recent Activity:
>     * New Members
>       <http://groups.yahoo.com/group/leon_sparc/members;_ylc=X3oDMTJmbG1uNHNlBF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEyOTg2Mzg5MTU-?o=6>
>       6
> Visit Your Group 
> <http://groups.yahoo.com/group/leon_sparc;_ylc=X3oDMTJlcTM5MjJnBF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTI5ODYzODkxNQ--> 
> Yahoo! Groups 
> <http://groups.yahoo.com/;_ylc=X3oDMTJkaTliZjUxBF9TAzk3MzU5NzE0BGdycElkAzEzODc4NDIEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMjk4NjM4OTE1> 
> Switch to: Text-Only 
> <mailto:leon_sparc-traditional at yahoogroups.com?subject=Change%20Delivery%20Format:%20Traditional>, 
> Daily Digest 
> <mailto:leon_sparc-digest at yahoogroups.com?subject=Email%20Delivery:%20Digest> 
> • Unsubscribe 
> <mailto:leon_sparc-unsubscribe at yahoogroups.com?subject=Unsubscribe> • 
> Terms of Use <http://docs.yahoo.com/info/terms/>
> .
> __,_._,___

More information about the users mailing list