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 {
5757pub 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) ]
You can’t perform that action at this time.
0 commit comments