-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: Fix
halt!
and crash!
message handling
Due to the way we called `__furi_crash_implementation` the value of the `r12` register would often get clobbered, corrupting the message. This is fixed by directly jumping to the crash handler from inline assembly. Only messages stored on flash memory can be shown at reboot, so strings stored in RAM (including string constants in external apps) will be replaced by a generic "check serial logs" message. This also allows calling `halt!` and `crash!` in their no-argument form.
- Loading branch information
Showing
2 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters