Re: Manual should specify what RTI does outside of an ISR
Posted: Sun Dec 22, 2013 1:08 pm
Thanks Andreas that is helpful.
I especially note your mention of GID and GIE. Currently the C compiler generates these around a change of arithmetic mode (floating point vs integer). I'm not sure why. It could only protect against an interrupt service routine making a permanent change to CONFIG and that change getting lost by the user code changing CONFIG. I can't offhand think of any reason why a randomly happening ISR would want to make a permanent change to CONFIG. Some change of a timer mode?!
Off topic, I hope everyone here has restful holidays which are fun and a complete break from work.
Tim
I especially note your mention of GID and GIE. Currently the C compiler generates these around a change of arithmetic mode (floating point vs integer). I'm not sure why. It could only protect against an interrupt service routine making a permanent change to CONFIG and that change getting lost by the user code changing CONFIG. I can't offhand think of any reason why a randomly happening ISR would want to make a permanent change to CONFIG. Some change of a timer mode?!
Off topic, I hope everyone here has restful holidays which are fun and a complete break from work.
Tim