Skip to content

Commit e826f1e

Browse files
committed
Move TSS busy information out of #Safety section
Signed-off-by: Joe Richey <[email protected]>
1 parent 821e4ff commit e826f1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/instructions/tables.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ pub fn sidt() -> DescriptorTablePointer {
7777
/// [`tss_segment`](crate::structures::gdt::Descriptor::tss_segment)
7878
/// for more information.
7979
///
80+
/// Calling `load_tss` with a busy TSS selector results in a `#GP` exception.
81+
///
8082
/// ## Safety
8183
///
8284
/// This function is unsafe because the caller must ensure that the given
83-
/// `SegmentSelector` points to a valid TSS entry in the GDT, that is entry is
84-
/// not busy, and that the corresponding data in the TSS is valid.
85+
/// `SegmentSelector` points to a valid TSS entry in the GDT and that the
86+
/// corresponding data in the TSS is valid.
8587
#[inline]
8688
pub unsafe fn load_tss(sel: SegmentSelector) {
8789
unsafe {

0 commit comments

Comments
 (0)