From 9ab8c707e43ee03ceaa9a0727a5d1ee7860581e4 Mon Sep 17 00:00:00 2001 From: Joe Richey Date: Wed, 30 Mar 2022 13:43:12 -0700 Subject: [PATCH] Move TSS busy information out of #Safety section Signed-off-by: Joe Richey --- src/instructions/tables.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/instructions/tables.rs b/src/instructions/tables.rs index 201855886..611d61175 100644 --- a/src/instructions/tables.rs +++ b/src/instructions/tables.rs @@ -77,11 +77,13 @@ pub fn sidt() -> DescriptorTablePointer { /// [`tss_segment`](crate::structures::gdt::Descriptor::tss_segment) /// for more information. /// +/// Calling `load_tss` with a busy TSS selector results in a `#GP` exception. +/// /// ## Safety /// /// This function is unsafe because the caller must ensure that the given -/// `SegmentSelector` points to a valid TSS entry in the GDT, that is entry is -/// not busy, and that the corresponding data in the TSS is valid. +/// `SegmentSelector` points to a valid TSS entry in the GDT and that the +/// corresponding data in the TSS is valid. #[inline] pub unsafe fn load_tss(sel: SegmentSelector) { unsafe {