-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
make HAL provenance-friendly #366
Comments
we might also be better off changing the internal representation of |
@myrrlyn do you wanna mess with this? |
sure. fwiw the standard library seems to Love storing anyway yeah i'll poke |
yeah, it should probably be |
in an ideal world we would also probably represent physical addresses as also sidenote please feel free to clean up any of the other messy stuff in the address types if you like. |
@myrrlyn is this still something you're interested in taking a crack at? i might do it at some point, otherwise. |
yes but feel free to beat me to it |
i'm probably not going to start any time soon, so, i probably won't. but i figured i'd check. |
the Mycelium HAL's address types (and other code that does on MMIO) was mostly written before Rust had ways to do int2ptr conversions without totally violating pointer provenance. we should update this code to be less egregiously wrong.
this basically means replacing all the int2ptr casts with
ptr::from_exposed_addr
and friends.The text was updated successfully, but these errors were encountered: