core: Removed trace crash macro

Made it a function instead.

Reworked from nnayo's commit
core: Handle EIND register

Parts with more than 128KB of flash need an extra byte on the stack
Rework from nnayo branch for the atmega2560

Signed-off-by: Michel Pollet <buserror@gmail.com>
cores: Add atmega2560