File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,10 @@ impl Descriptor {
316316 ///
317317 /// If `iomap_size` is greater than zero, there **must** be a valid IO map at `tss_ptr + iomap_base`.
318318 /// The size of the IO map must correspond with the given `iomap_size`.
319- pub unsafe fn tss_segment_with_iomap ( tss : & ' static TaskStateSegment , iomap_size : u16 ) -> Descriptor {
319+ pub unsafe fn tss_segment_with_iomap (
320+ tss : & ' static TaskStateSegment ,
321+ iomap_size : u16 ,
322+ ) -> Descriptor {
320323 use self :: DescriptorFlags as Flags ;
321324 use core:: mem:: size_of;
322325
@@ -329,7 +332,7 @@ impl Descriptor {
329332 // limit (the `-1` is needed since the bound is inclusive)
330333 low. set_bits (
331334 0 ..16 ,
332- ( size_of :: < TaskStateSegment > ( ) + ( tss. iomap_base + iomap_size) as usize - 1 ) as u64
335+ ( size_of :: < TaskStateSegment > ( ) + ( tss. iomap_base + iomap_size) as usize - 1 ) as u64 ,
333336 ) ;
334337 // type (0b1001 = available 64-bit tss)
335338 low. set_bits ( 40 ..44 , 0b1001 ) ;
You can’t perform that action at this time.
0 commit comments