Update Mass Storage bootloader so that it can support devices with only 4KB bootloade...
[pub/USBasp.git] / Bootloaders / MassStorage / BootloaderAPITable.S
index 2aded74..2d7610b 100644 (file)
   this software.\r
 */\r
 \r
+#if AUX_BOOT_SECTION_SIZE > 0\r
+\r
+#warning Using a AUX bootloader section in addition to the defined bootloader space (see documentation).\r
+\r
+; Trampoline to jump over the AUX bootloader section to the start of the bootloader,\r
+; on devices where an AUX bootloader section is used.\r
+.section .boot_aux_trampoline, "ax"\r
+.global Boot_AUX_Trampoline\r
+Boot_AUX_Trampoline:\r
+       jmp BOOT_START_ADDR\r
+\r
+#endif\r
+\r
 ; Trampolines to actual API implementations if the target address is outside the\r
 ; range of a rjmp instruction (can happen with large bootloader sections)\r
 .section .apitable_trampolines, "ax"\r