-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1973: Remove reborrows? r=phil-levis a=ppannuto ### Pull Request Overview We use a re-borrow idiom everywhere we access registers. Once upon a lifetime, when MMIO looked very different, I think this was necessary as we changed types to something that let us access the hardware. After the introduction of `StaticRef`, however, I don't think we actually need this anymore and we can simplify all of the register accesses. There ~300 more instances of this `&*` register pattern in the kernel, so I wanted to take a temperature check on this before doing more of them. ### Testing Strategy Compiling. ### TODO or Help Wanted Is there are a reason to keep all of these `&*` around? ### Documentation Updated - [ ] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [ ] Ran `make prepush`. Co-authored-by: Pat Pannuto <pat.pannuto@gmail.com>
- Loading branch information
Showing
28 changed files
with
590 additions
and
728 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
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.