mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Fix: standard library -> core library
This commit is contained in:
committed by
GitHub
parent
250a80dd77
commit
1b52ff1acf
@@ -251,7 +251,7 @@ The problem is that we only write to the `Buffer` and never read from it again.
|
|||||||
|
|
||||||
[volatile]: https://en.wikipedia.org/wiki/Volatile_(computer_programming)
|
[volatile]: https://en.wikipedia.org/wiki/Volatile_(computer_programming)
|
||||||
|
|
||||||
In order to use volatile writes for the VGA buffer, we use the [volatile][volatile crate] library. This _crate_ (this is how packages are called in the Rust world) provides a `Volatile` wrapper type with `read` and `write` methods. These methods internally use the [read_volatile] and [write_volatile] functions of the standard library and thus guarantee that the reads/writes are not optimized away.
|
In order to use volatile writes for the VGA buffer, we use the [volatile][volatile crate] library. This _crate_ (this is how packages are called in the Rust world) provides a `Volatile` wrapper type with `read` and `write` methods. These methods internally use the [read_volatile] and [write_volatile] functions of the core library and thus guarantee that the reads/writes are not optimized away.
|
||||||
|
|
||||||
[volatile crate]: https://docs.rs/volatile
|
[volatile crate]: https://docs.rs/volatile
|
||||||
[read_volatile]: https://doc.rust-lang.org/nightly/core/ptr/fn.read_volatile.html
|
[read_volatile]: https://doc.rust-lang.org/nightly/core/ptr/fn.read_volatile.html
|
||||||
|
|||||||
Reference in New Issue
Block a user