e-lib:timer functions - is this a bug?

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

e-lib:timer functions - is this a bug?

Postby notzed » Mon Mar 31, 2014 9:23 am

The timer functions in e-lib update the config register, but do not protect it with any interrupt disable block.

I've kinda given up trying to understand how precisely gcc is handling the config register with respect to the mode switching stuff but it does always protect modifications by disabling interrupts, so this hints there may be a race condition in the ctimer related routines.
notzed
 
Posts: 331
Joined: Mon Dec 17, 2012 12:28 am
Location: Australia

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 30 guests

cron