Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

There's a couple issues at play here, and others with a slightly firmer grasp than me on detailed nuances of Rust soundness (@lschuermann , @jrvanwhy) might be able to give some more context (and also may need to correct me; I'm still more years a low-level C programmer than a Rust guru..., though trying to answer things like this definitely help deepen my understanding of Rust...)


First: The abstraction of VolatileCell holding a reference to memory is fundamentally unsound. We have WIP re-write for tock-registers that addresses this, but it's a bigger project: #4001. This comment in that PR has some links to more context around volatile memory access issues in Rust more generally.


For …

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ShaneMurphy2
Comment options

@alevy
Comment options

@ShaneMurphy2
Comment options

@alevy
Comment options

@lschuermann
Comment options

Answer selected by ShaneMurphy2
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants