bootloader: Mark jump_to_application() as noreturn.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 29 Dec 2019 11:51:25 +0000 (12:51 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
src/bootloader/main.rs
src/common/startup.c

index a5fe9832d30a7cf6d18ed9ca3e130e5477818163..321166c55a55f9bde891b5ec32db1ae804d3f8ce 100644 (file)
@@ -44,7 +44,7 @@ extern {
     fn enable_interrupts();
     fn disable_interrupts();
 
-    fn jump_to_application(address: u32);
+    fn jump_to_application(address: u32) -> !;
 }
 
 #[cfg(bootloader_type = "intermediate")]
index 0a5507ac9a0524264d062447b3d9047693fc2501..256863ff213709d42ed8526f87fb2b796e2d2d8b 100644 (file)
@@ -151,6 +151,7 @@ Dummy_Handler (void)
        }
 }
 
+__attribute__ ((noreturn))
 void
 jump_to_application (volatile uint32_t *address)
 {