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 @@ -451,7 +451,10 @@ impl Descriptor {
451
451
///
452
452
/// If `iomap_size` is greater than zero, there **must** be a valid IO map at `tss_ptr + iomap_base`.
453
453
/// The size of the IO map must correspond with the given `iomap_size`.
454
- pub unsafe fn tss_segment_with_iomap ( tss : & ' static TaskStateSegment , iomap_size : u16 ) -> Descriptor {
454
+ pub unsafe fn tss_segment_with_iomap (
455
+ tss : & ' static TaskStateSegment ,
456
+ iomap_size : u16 ,
457
+ ) -> Descriptor {
455
458
use self :: DescriptorFlags as Flags ;
456
459
use core:: mem:: size_of;
457
460
@@ -464,7 +467,7 @@ impl Descriptor {
464
467
// limit (the `-1` is needed since the bound is inclusive)
465
468
low. set_bits (
466
469
0 ..16 ,
467
- ( size_of :: < TaskStateSegment > ( ) + ( tss. iomap_base + iomap_size) as usize - 1 ) as u64
470
+ ( size_of :: < TaskStateSegment > ( ) + ( tss. iomap_base + iomap_size) as usize - 1 ) as u64 ,
468
471
) ;
469
472
// type (0b1001 = available 64-bit tss)
470
473
low. set_bits ( 40 ..44 , 0b1001 ) ;
You can’t perform that action at this time.
0 commit comments