Update posts for x86_64 version 0.7.0 (#607)

This commit is contained in:
Philipp Oppermann
2019-05-09 15:00:49 +02:00
committed by GitHub
parent e2f0881701
commit 0632a0de80
6 changed files with 42 additions and 42 deletions

View File

@@ -166,18 +166,18 @@ The functionality of the `isa-debug-exit` device is very simple. When a `value`
Instead of manually invoking the `in` and `out` assembly instructions, we use the abstractions provided by the [`x86_64`] crate. To add a dependency on that crate, we add it to the `dependencies` section in our `Cargo.toml`:
[`x86_64`]: https://docs.rs/x86_64/0.6.0/x86_64/
[`x86_64`]: https://docs.rs/x86_64/0.7.0/x86_64/
```toml
# in Cargo.toml
[dependencies]
x86_64 = "0.6.0"
x86_64 = "0.7.0"
```
Now we can use the [`Port`] type provided by the crate to create an `exit_qemu` function:
[`Port`]: https://docs.rs/x86_64/0.6.0/x86_64/instructions/port/struct.Port.html
[`Port`]: https://docs.rs/x86_64/0.7.0/x86_64/instructions/port/struct.Port.html
```rust
// in src/main.rs