aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-08-20 13:43:19 -0700
committerChristian Cunningham <cc@localhost>2022-08-20 13:43:19 -0700
commit63f8487283f8b167846eb2562cca5b8fb504cc37 (patch)
tree1d4e78e054a480159803cb4366b4217565aa8c85
parent07eb6b5604d04dbd8a20fb27f9a1ae7d689add6e (diff)
Document panic reenter
-rw-r--r--src/panic_wait.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/panic_wait.rs b/src/panic_wait.rs
index 2181869..a9dfba3 100644
--- a/src/panic_wait.rs
+++ b/src/panic_wait.rs
@@ -5,6 +5,12 @@
use crate::{cpu,println};
use core::panic::PanicInfo;
+/// # Prevent Double Faulting
+///
+/// An atomic operation is used to mark that
+/// a fault has occurred. If it detects that
+/// there was already a fault, it spins to
+/// prevent a recursive faulting cycle.
fn panic_prevent_reenter() {
use core::sync::atomic::{AtomicBool, Ordering};