Skip to content

Commit 7691201

Browse files
committed
doc
1 parent 25ce9aa commit 7691201

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/structures/tss.rs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,25 @@ impl TaskStateSegment {
4444
pub enum InvalidIoMap {
4545
/// The IO permissions bitmap is too far from the TSS. It must be within `0xdfff` bytes of the
4646
/// start of the TSS.
47-
TooFarFromTss { distance: usize },
47+
TooFarFromTss {
48+
/// The distance of the IO permissions bitmap from the beginning of the TSS.
49+
distance: usize
50+
},
4851
/// The final byte of the IO permissions bitmap was not 0xff
49-
InvalidTerminatingByte { byte: u8 },
52+
InvalidTerminatingByte {
53+
/// The byte found at the end of the IO permissions bitmap.
54+
byte: u8
55+
},
5056
/// The IO permissions bitmap exceeds the maximum length (8193).
51-
TooLong { len: usize },
57+
TooLong {
58+
/// The length of the IO permissions bitmap.
59+
len: usize
60+
},
5261
/// The `iomap_base` in the `TaskStateSegment` struct was not what was expected.
53-
InvalidBase { expected: u16, got: u16 },
62+
InvalidBase {
63+
/// The expected `iomap_base` to be set in the `TaskStateSegment` struct.
64+
expected: u16,
65+
/// The actual `iomap_base` set in the `TaskStateSegment` struct.
66+
got: u16
67+
},
5468
}

0 commit comments

Comments
 (0)