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 {
316
316
///
317
317
/// If `iomap_size` is greater than zero, there **must** be a valid IO map at `tss_ptr + iomap_base`.
318
318
/// 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 {
320
323
use self :: DescriptorFlags as Flags ;
321
324
use core:: mem:: size_of;
322
325
@@ -329,7 +332,7 @@ impl Descriptor {
329
332
// limit (the `-1` is needed since the bound is inclusive)
330
333
low. set_bits (
331
334
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 ,
333
336
) ;
334
337
// type (0b1001 = available 64-bit tss)
335
338
low. set_bits ( 40 ..44 , 0b1001 ) ;
You can’t perform that action at this time.
0 commit comments