bootloader: Call clock::reset() before jumping to the application.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 17 Nov 2019 20:42:01 +0000 (21:42 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
By switching back to FBE clock mode there, we can unconditionally
do the switches to FBE, PBE and PEE in any of our programs.

src/bootloader/main.rs

index ec71e15abccc9ad0d910320ea72001f2d63213f1..52a14738f62e0008d6ad4cc95b362432ab0f6170 100644 (file)
@@ -104,5 +104,7 @@ pub unsafe extern fn main() {
 
     disable_interrupts();
 
+    clock::reset();
+
     jump_to_application(APPLICATION_ADDR);
 }