Leo McManus wrote:
In iomacros.h the _BIC_SR_IRQ and _BIS_SR_IRQ macros reference r1 and not r2.I have not synced with the repository recently so sorry if this fixed.
no need to fix it, it ain't broken ;-)the macros modify the saved SR on stack so that the powersave mode can be changed _after_ the interrupt (when SR gets restored from stack).
therefore it's correct to modify "bi[s|c] offset(r1)" HTH chris