Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra RestoreTpl() call in DiskIo to maintain TPL raise/restore s…
…ymmetry (#230) Adds a call to RestoreTpl() in DiskIo2ReadWriteDisk(). While the current implementation does not technically violate spec on raise/restore TPL, this extra call ensures symmetry between RaiseTpl and RestoreTpl calls, which makes analysis of TPL correctness simpler and permits certain non-standard TPL usages that some platforms require. - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? Booted a system using this driver for disk access, observed that symmetry between Raise/Restore TPL was maintained as expected. N/A Remove unnecessary TPL restore call (#229) Comments out a redundant call to RestoreTpl(). While this does not technically violate spec on raise/restore TPL, TPL should already be at the specified level. This extra call introduces an asymmetry between RaiseTpl and RestoreTpl calls, which makes analysis of TPL correctness more difficult and hampers certain non-standard TPL usages that some platforms require. - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? Booted and observed no un-intended side effects w.r.t. TPL with this modification. Added test instrumentation to verify that TPL is always already at the desired state prior to this call being executed. N/A --------- Co-authored-by: Michael Kubacki <michael.kubacki@microsoft.com>
- Loading branch information