-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timer wraparound fix; app RAM address calculation (#47)
Fix several bugs related to alarms not firing in applications: * Emulated internal timers were not handling wraparound correctly when checking how long to wait for the next interrupt. If the time had already passed for the next interrupt, then the function would underflow and return a value near u32::MAX, so the interrupt would be scheduled for the distant future instead of firing immediately. * Fix alarm example code to sleep the correct amount of time. * Application RAM was not being put in the correct location in the linker script. This caused issues with sharing memory with the kernel, as it was in the wrong region of RAM, which manifested as errors when printing to the console. * Remove weird BSS workaround in the runtime linking, as we would only need it for certain ARM platforms. * Add low-level debug capsule to the kernel so that application panics are handled correctly
- Loading branch information
Showing
9 changed files
with
122 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.