3 ms·
A trampoline in code is something you jump off of - essentially, a redirection snippet. You jump into it and it bounces you somewhere else. In this case, the u
by bri3d 5y ago
A trampoline in code is something you jump off of - essentially, a redirection snippet. You jump into it and it bounces you somewhere else.
In this case, the use is documented where it's implemented: https://github.com/raspberrypi/pico-bootrom/blob/master/bootrom/bootrom_rt0.S#L425 https://github.com/raspberrypi/pico-bootrom/blob/master/boot... . It's a custom wrapper to call ROM functions. When the ROM function returns, the trampoline executes a debugger breakpoint. This is done so that the debugger can call into ROM easily without needing to set a hardware breakpoint.