RTEMS PowerPC progress (Not).

Joel Sherrill joel.sherrill at OARcorp.com
Tue Jun 1 12:58:49 UTC 2010


On 06/01/2010 07:29 AM, Nick Thomas wrote:
> I have been looking into rtems_timer_server_fire_after() function.
>
> Have added some counting flags to check how far it's getting through that
> func before doing something weird.
>
> And, I notice that somewhere in the call to _Watchdog_Insert, something
> happens. And, it looks like an interrupt has been taken.
>
> It can't be though, because this is within an _ISR_Disable( level ); section
> of code.
>
> Unless something else is responsible.
> But, it looks like an interrupt is happening, which eventually runs
> _Thread_Enable_dispatch() (which sets the _Thread_Dispatch_disable_level to
> zero.
>
> And when we return to our rtems_timer_server_fire_after() function, we
> shortly afterwards call _Thread_Enable_dispatch() again, and this sets
> _Thread_Dispatch_disable_level to -1.
>
> So, my problems could be caused by interrupts happening within an area of
> code where they shouldn't!
>
>    
That is possible but please compare the
Timer Server code in 4.9 against that
in 4.7.  Or at least peruse the CVS history
on it.  I definitely recall some serious bugs
in there.
>
> Regards
>
> Nick
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>    


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the users mailing list