File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,25 @@ impl TaskStateSegment {
44
44
pub enum InvalidIoMap {
45
45
/// The IO permissions bitmap is too far from the TSS. It must be within `0xdfff` bytes of the
46
46
/// 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
+ } ,
48
51
/// 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
+ } ,
50
56
/// 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
+ } ,
52
61
/// 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
+ } ,
54
68
}
You can’t perform that action at this time.
0 commit comments