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 @@ -44,11 +44,25 @@ impl TaskStateSegment {
4444pub 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}
You can’t perform that action at this time.
0 commit comments