Closed GoogleCodeExporter closed 8 years ago
Thanks for your ongoing enthusiasm. I will be getting in touch with you on this
and other issues.
Original comment by jsden...@gmail.com
on 3 Feb 2012 at 6:59
I'll echo this -- thank you for your help and suggestions. Your bug reports are
detailed and very very useful.
I'm looking at the time code again now, and I will incorporate your suggestions
(or something functionally equivalent). The time code pre-dated the threads
code, and obviously we overlooked some things when adding threads!
Eric
Original comment by ersm...@hfx.eastlink.ca
on 4 Feb 2012 at 9:45
I've checked in some fixes for the rtc. I did things slightly differently,
mainly to accommodate XMM and XMMC modes, which do not support running C code
in other cogs. So in rtc_cog.c I added a small PASM function to do the update.
XMM and XMMC also don't support the atomic set/get operations, so I moved the
rtc variables to hub memory and added _getAtomic64 and _putAtomic64 functions
to get/set the variables. All cogs read the low word first, then the high word,
in consecutive hub cycles; similarly they write low first then high in
consecutive cycles. I think this should guarantee that all the cogs will see
consistent values.
Original comment by ersm...@hfx.eastlink.ca
on 7 Feb 2012 at 5:34
Original issue reported on code.google.com by
tjstefan...@charter.net
on 3 Feb 2012 at 5:28Attachments: