Add missing } in code example

This commit is contained in:
Philipp Oppermann
2018-06-18 21:16:28 +02:00
parent 233e32b570
commit 1ed7a4ceb8

View File

@@ -251,6 +251,7 @@ lazy_static! {
}; };
tss 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. 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.