Set avr's bootloader_jump function to be weak (#11418)

Co-authored-by: Dasky <dasky@nowhere>
This commit is contained in:
Dasky 2021-01-05 05:53:37 +00:00 committed by GitHub
parent d0aa9ff972
commit e7db582e35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ uint32_t reset_key __attribute__((section(".noinit,\"aw\",@nobits;")));
* *
* FIXME: needs doc * FIXME: needs doc
*/ */
void bootloader_jump(void) { __attribute__((weak)) void bootloader_jump(void) {
#if !defined(BOOTLOADER_SIZE) #if !defined(BOOTLOADER_SIZE)
uint8_t high_fuse = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS); uint8_t high_fuse = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS);