X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flpc%2Fao_interrupt.c;h=25413abb04964676c1367d968118bd7d200a6a18;hb=f9103d13f620cb06642aacdff9dcaf05e87d671f;hp=bc2848c3bffa364ba6298d3a32c9439a817dc57c;hpb=2108da105ed9c915fc09d1251dc655bf11203d79;p=fw%2Faltos diff --git a/src/lpc/ao_interrupt.c b/src/lpc/ao_interrupt.c index bc2848c3..25413abb 100644 --- a/src/lpc/ao_interrupt.c +++ b/src/lpc/ao_interrupt.c @@ -162,6 +162,12 @@ const void *const __interrupt_vector[0x30] = { __attribute__ ((section(".init.0"))) const void *const __interrupt_pad[0x10]; +#if IS_FLASH_LOADER +/* Flash loader needs a magic value at 0x2fc to be 0x4E69 7370 */ +__attribute__ ((section(".no_isp"))) +const uint32_t force_no_isp = 0x4E697370; +#endif + void main(void) __attribute__((__noreturn__)); void *__interrupt_ram[sizeof(__interrupt_vector)/sizeof(__interrupt_vector[0])] __attribute((section(".preserve.1")));