File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,8 @@ impl Descriptor {
315
315
/// # Safety
316
316
///
317
317
/// There must be a valid IO map at `(tss as *const u8).offset(tss.iomap_base)`
318
- /// of length `iomap_size`
318
+ /// of length `iomap_size`, with the terminating `0xFF` byte. Additionally, `iomap_base` must
319
+ /// not exceed `0xDFFF`.
319
320
pub unsafe fn tss_segment_with_iomap (
320
321
tss : & ' static TaskStateSegment ,
321
322
iomap_size : u16 ,
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ pub struct TaskStateSegment {
17
17
pub interrupt_stack_table : [ VirtAddr ; 7 ] ,
18
18
reserved_3 : u64 ,
19
19
reserved_4 : u16 ,
20
- /// The 16-bit offset to the I/O permission bit map from the 64-bit TSS base.
20
+ /// The 16-bit offset to the I/O permission bit map from the 64-bit TSS base. It must not
21
+ /// exceed `0xDFFF`.
21
22
pub iomap_base : u16 ,
22
23
}
23
24
You can’t perform that action at this time.
0 commit comments