-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hal_x86_64): be less stupid about ISR tracing (#496)
Tracing in interrupt service routines can easily deadlock the kernel (c.f. c4183db). Let's be less dumb about it. This commit does the following: - Factor out the code for forcefully unlocking the mutices around tracing outputs (VGA and serial) into a separate, unsafe function, and make the ISRs that are (currently) always a kernel oops just call that - Remove the trace in the "spurious interrupt" handler, as that seems like a good way to deadlock the universe. In future, let's have a way to track whether spurious interrupts have fired that doesn't involve emitting a trace (maybe counters?)
- Loading branch information
Showing
1 changed file
with
39 additions
and
22 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