Skip to content

Commit 9c30209

Browse files
RestiosonFreax13
authored andcommitted
doc
1 parent a85c1e2 commit 9c30209

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
@@ -57,13 +57,27 @@ impl Default for TaskStateSegment {
5757
pub enum InvalidIoMap {
5858
/// The IO permissions bitmap is too far from the TSS. It must be within `0xdfff` bytes of the
5959
/// start of the TSS.
60-
TooFarFromTss { distance: usize },
60+
TooFarFromTss {
61+
/// The distance of the IO permissions bitmap from the beginning of the TSS.
62+
distance: usize
63+
},
6164
/// The final byte of the IO permissions bitmap was not 0xff
62-
InvalidTerminatingByte { byte: u8 },
65+
InvalidTerminatingByte {
66+
/// The byte found at the end of the IO permissions bitmap.
67+
byte: u8
68+
},
6369
/// The IO permissions bitmap exceeds the maximum length (8193).
64-
TooLong { len: usize },
70+
TooLong {
71+
/// The length of the IO permissions bitmap.
72+
len: usize
73+
},
6574
/// The `iomap_base` in the `TaskStateSegment` struct was not what was expected.
66-
InvalidBase { expected: u16, got: u16 },
75+
InvalidBase {
76+
/// The expected `iomap_base` to be set in the `TaskStateSegment` struct.
77+
expected: u16,
78+
/// The actual `iomap_base` set in the `TaskStateSegment` struct.
79+
got: u16
80+
},
6781
}
6882

6983
#[cfg(test)]

0 commit comments

Comments
 (0)