Fix: standard library -> core library

This commit is contained in:
Philipp Oppermann
2018-10-26 12:30:20 +02:00
committed by GitHub
parent 250a80dd77
commit 1b52ff1acf

View File

@@ -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