-
Notifications
You must be signed in to change notification settings - Fork 19
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
Implement copy for volatile? #9
Comments
See #6 (comment) and #5 (comment) as to why this hasn't been done yet. I would like to see VolatileArray be implemented, is that possible now? @phil-opp |
Oh it seems like I forgot to look at the MRs to check if this was already asked. Sorry about that. Anyway thanks for your answer. I'd also be interested to know if something like VolatileArray could be useful. |
I think it should be possible to implement |
The new v0.5.0 release includes both a |
So I have been following the 'Writing an OS in Rust' guide. And while I was experimenting and reading through the code I noticed that
Copy
hasn't been implemented forVolatile
.This could be useful when writing code:
After this the new line function for the VGA buffer can be implemented as follows:
Now I did notice that
copy_within
uses the normalptr::copy
instead of volatile_copy_memory. Is this a potential issue?Anyway let me know if you want to add this, if so I will make a short MR.
The text was updated successfully, but these errors were encountered: