aboutsummaryrefslogtreecommitdiff
path: root/Bootloaders/MassStorage/BootloaderAPITable.S
diff options
context:
space:
mode:
Diffstat (limited to 'Bootloaders/MassStorage/BootloaderAPITable.S')
-rw-r--r--Bootloaders/MassStorage/BootloaderAPITable.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bootloaders/MassStorage/BootloaderAPITable.S b/Bootloaders/MassStorage/BootloaderAPITable.S
index 2aded74213..2d7610b582 100644
--- a/Bootloaders/MassStorage/BootloaderAPITable.S
+++ b/Bootloaders/MassStorage/BootloaderAPITable.S
@@ -28,6 +28,19 @@
this software.
*/
+#if AUX_BOOT_SECTION_SIZE > 0
+
+#warning Using a AUX bootloader section in addition to the defined bootloader space (see documentation).
+
+; Trampoline to jump over the AUX bootloader section to the start of the bootloader,
+; on devices where an AUX bootloader section is used.
+.section .boot_aux_trampoline, "ax"
+.global Boot_AUX_Trampoline
+Boot_AUX_Trampoline:
+ jmp BOOT_START_ADDR
+
+#endif
+
; Trampolines to actual API implementations if the target address is outside the
; range of a rjmp instruction (can happen with large bootloader sections)
.section .apitable_trampolines, "ax"