We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821e4ff commit e826f1eCopy full SHA for e826f1e
src/instructions/tables.rs
@@ -77,11 +77,13 @@ pub fn sidt() -> DescriptorTablePointer {
77
/// [`tss_segment`](crate::structures::gdt::Descriptor::tss_segment)
78
/// for more information.
79
///
80
+/// Calling `load_tss` with a busy TSS selector results in a `#GP` exception.
81
+///
82
/// ## Safety
83
84
/// 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.
85
+/// `SegmentSelector` points to a valid TSS entry in the GDT and that the
86
+/// corresponding data in the TSS is valid.
87
#[inline]
88
pub unsafe fn load_tss(sel: SegmentSelector) {
89
unsafe {
0 commit comments