bootloader: Sanitize global interrupt handling.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 16 Nov 2019 12:16:39 +0000 (13:16 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
commit2e15e18237f50ba61acc861a4bd23560d973e943
treecb4ed4063fc7a5c6c6d04271aab1baed7cc92ac1
parent5ec2dd3f317fc01e9893f34c93b99986c3fee521
bootloader: Sanitize global interrupt handling.

We now disable interrupts before jumping to application,
as overwriting the VTOR with interrupts enabled is rather risky.

Also don't assume that interrupts are enabled when the bootloader
is run -- enable them explicitly when we need them.
src/bootloader/main.rs