Skip to content

Commit 54a0c2b

Browse files
authored
minor fix (phil-opp#928)
1 parent 16cc704 commit 54a0c2b

File tree

1 file changed

+2
-2
lines changed
  • blog/content/edition-2/posts/06-double-faults

1 file changed

+2
-2
lines changed

blog/content/edition-2/posts/06-double-faults/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ pub fn init() {
373373
}
374374
```
375375

376-
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.
376+
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.
377377

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

435-
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`:
435+
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`:
436436

437437
```toml
438438
# in Cargo.toml

0 commit comments

Comments
 (0)