mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update blog to 86d1ff145d
This commit is contained in:
@@ -131,7 +131,7 @@ Fortunately there already is a crate for that: [rlibc]. When we look at its [sou
|
||||
```toml
|
||||
...
|
||||
[dependencies]
|
||||
rlibc = "*"
|
||||
rlibc = "0.1.4"
|
||||
```
|
||||
and an `extern crate` definition in our `src/lib.rs`:
|
||||
|
||||
|
||||
@@ -315,8 +315,8 @@ To use a spinning mutex, we can add the [spin crate] as a dependency in Cargo.to
|
||||
```toml
|
||||
...
|
||||
[dependencies]
|
||||
rlibc = "*"
|
||||
spin = "*"
|
||||
rlibc = "0.1.4"
|
||||
spin = "0.3.4"
|
||||
```
|
||||
and a `extern crate spin;` definition in `src/lib.rs`. Then we can use the spinning Mutex to provide interior mutability to our static writer:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user