From 1ed7a4ceb83d5d09dcf95cc2c341df4640347082 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 18 Jun 2018 21:16:28 +0200 Subject: [PATCH] Add missing } in code example --- blog/content/second-edition/posts/07-double-faults/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/blog/content/second-edition/posts/07-double-faults/index.md b/blog/content/second-edition/posts/07-double-faults/index.md index 91db6d69..fd9a5b59 100644 --- a/blog/content/second-edition/posts/07-double-faults/index.md +++ b/blog/content/second-edition/posts/07-double-faults/index.md @@ -251,6 +251,7 @@ lazy_static! { }; tss }; +} ``` We use `lazy_static` because Rust's const evaluator is not yet powerful enough to do this initialization at compile time. We define that the 0th IST entry is the double fault stack (any other IST index would work too). Then we write the top address of a double fault stack to the 0th entry. We write the top address because stacks on x86 grow downwards, i.e. from high addresses to low addresses.