mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Update x86_64, volatile, and spin dependencies
This commit is contained in:
@@ -300,7 +300,7 @@ We can add a dependency on the `volatile` crate by adding it to the `dependencie
|
||||
# in Cargo.toml
|
||||
|
||||
[dependencies]
|
||||
volatile = "0.2.3"
|
||||
volatile = "0.2.6"
|
||||
```
|
||||
|
||||
The `0.2.3` is the [semantic] version number. For more information, see the [Specifying Dependencies] guide of the cargo documentation.
|
||||
@@ -538,7 +538,7 @@ To use a spinning mutex, we can add the [spin crate] as a dependency:
|
||||
```toml
|
||||
# in Cargo.toml
|
||||
[dependencies]
|
||||
spin = "0.4.9"
|
||||
spin = "0.5.2"
|
||||
```
|
||||
|
||||
Then we can use the spinning Mutex to add safe [interior mutability] to our static `WRITER`:
|
||||
|
||||
@@ -172,7 +172,7 @@ Instead of manually invoking the `in` and `out` assembly instructions, we use th
|
||||
# in Cargo.toml
|
||||
|
||||
[dependencies]
|
||||
x86_64 = "0.7.0"
|
||||
x86_64 = "0.7.5"
|
||||
```
|
||||
|
||||
Now we can use the [`Port`] type provided by the crate to create an `exit_qemu` function:
|
||||
|
||||
Reference in New Issue
Block a user