File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,27 @@ impl Default for TaskStateSegment {
57
57
pub enum InvalidIoMap {
58
58
/// The IO permissions bitmap is too far from the TSS. It must be within `0xdfff` bytes of the
59
59
/// 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
+ } ,
61
64
/// 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
+ } ,
63
69
/// 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
+ } ,
65
74
/// 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
+ } ,
67
81
}
68
82
69
83
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments