Skip to content

Commit

Permalink
minor fix (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
garasubo authored Feb 11, 2021
1 parent 16cc704 commit 54a0c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/content/edition-2/posts/06-double-faults/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ pub fn init() {
}
```

We reload the code segment register using [`set_cs`] and to load the TSS using [`load_tss`]. The functions are marked as `unsafe`, so we need an `unsafe` block to invoke them. The reason is that it might be possible to break memory safety by loading invalid selectors.
We reload the code segment register using [`set_cs`] and load the TSS using [`load_tss`]. The functions are marked as `unsafe`, so we need an `unsafe` block to invoke them. The reason is that it might be possible to break memory safety by loading invalid selectors.

[`set_cs`]: https://docs.rs/x86_64/0.13.2/x86_64/instructions/segmentation/fn.set_cs.html
[`load_tss`]: https://docs.rs/x86_64/0.13.2/x86_64/instructions/tables/fn.load_tss.html
Expand Down Expand Up @@ -432,7 +432,7 @@ fn panic(info: &PanicInfo) -> ! {
}
```

Like our `panic_handler` test, the test will run [without a test harness]. The reason is that we can't continue execution after a double fault, so more than one test doesn't make sense. To disable, the test harness for the test, we add the following to our `Cargo.toml`:
Like our `panic_handler` test, the test will run [without a test harness]. The reason is that we can't continue execution after a double fault, so more than one test doesn't make sense. To disable the test harness for the test, we add the following to our `Cargo.toml`:

```toml
# in Cargo.toml
Expand Down

0 comments on commit 54a0c2b

Please sign in to comment.