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 @@ -450,7 +450,8 @@ impl Descriptor {
450
450
/// # Safety
451
451
///
452
452
/// There must be a valid IO map at `(tss as *const u8).offset(tss.iomap_base)`
453
- /// of length `iomap_size`
453
+ /// of length `iomap_size`, with the terminating `0xFF` byte. Additionally, `iomap_base` must
454
+ /// not exceed `0xDFFF`.
454
455
pub unsafe fn tss_segment_with_iomap (
455
456
tss : & ' static TaskStateSegment ,
456
457
iomap_size : u16 ,
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ pub struct TaskStateSegment {
19
19
pub interrupt_stack_table : [ VirtAddr ; 7 ] ,
20
20
reserved_3 : u64 ,
21
21
reserved_4 : u16 ,
22
- /// The 16-bit offset to the I/O permission bit map from the 64-bit TSS base.
22
+ /// The 16-bit offset to the I/O permission bit map from the 64-bit TSS base. It must not
23
+ /// exceed `0xDFFF`.
23
24
pub iomap_base : u16 ,
24
25
}
25
26
You can’t perform that action at this time.
0 commit comments