On Jan 27, 2012, at 9:36 AM, Georg-Johann Lay wrote:

> OS_main/OS_task won't have the problem, but such functions cannot be used in
> .initN, of course. Except in the case where the code is in .init9 with custom
> startup code.

Which is exactly what optiboot is doing.

Perfect.  "Problem" explained, workaround exists.  Solved!
Using OS_main also causes the frame pointer to be set up, so while the code is 
a big bigger than it could be, it is at least correct.

BillW


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to