Re: [patch,avr] Make jump tables work with bootloader

2014-09-10 Thread Denis Chertykov
2014-09-08 21:12 GMT+04:00 Georg Lay : > avr-gcc puts jump tables in section .progmem.gcc_sw_table and assumes that > .text starts at 0, i.e. LPM is on order to read table entries. > > This is no more the case if .text starts ata higher address like typically > used with boot loaders. > > This patc

[patch,avr] Make jump tables work with bootloader

2014-09-08 Thread Georg Lay
avr-gcc puts jump tables in section .progmem.gcc_sw_table and assumes that .text starts at 0, i.e. LPM is on order to read table entries. This is no more the case if .text starts ata higher address like typically used with boot loaders. This patch adds the few instructions to set RAMPZ and ma