-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use volatile memory access for memory-mapped I/O #199
Labels
bug
Something isn't working
Comments
We'll want to wait for rust-osdev/volatile#22 making the |
This was referenced Apr 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, we access memory-mapped I/O in a non-volatile fashion, which results in the compiler optimizing the access away under certain circumstances. We should make access to memory-mapped I/O volatile.
Instead of using
pointer::read_volatile
andpointer::write_volatile
we should use an abstraction likevolatile::Volatile
by rust-osdev to enforce volatile memory access via the type system.The text was updated successfully, but these errors were encountered: