mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
facede13fd
The current context switch and thread stack init don't have a generic way to save/restore registers for all AVR-8 variations. This add defines to check flash/data sizes and rework: - thread_stack_init - avr8_context_save - avr8_context_restore The new implementation add missing RAMP D/X/Y registers that are used by XMEGA variations. The rules to add EIND, RAMP(D,X,Y,Z) register are: - EIND must be added if device have more than 128k flash. This means, device can access more than 64k words in flash. - RAMP D/X/Y must be added if device have or can address more than 64k data. - RAMPZ must be added if device can address more than 64k bytes of flash or data. With above rules there is no necessity to check by device because it is mandatory the registers for those MCU variations. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com> |
||
---|---|---|
.. | ||
avr_libc_extra | ||
include | ||
avr8_cpu.c | ||
doc.txt | ||
Kconfig | ||
Makefile | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
startup.c | ||
thread_arch.c |