Skip to content

Commit e17b928

Browse files
RestiosonFreax13
authored andcommitted
formatting
1 parent 0e66d82 commit e17b928

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/structures/gdt.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,10 @@ impl Descriptor {
451451
///
452452
/// If `iomap_size` is greater than zero, there **must** be a valid IO map at `tss_ptr + iomap_base`.
453453
/// 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 {
455458
use self::DescriptorFlags as Flags;
456459
use core::mem::size_of;
457460

@@ -464,7 +467,7 @@ impl Descriptor {
464467
// limit (the `-1` is needed since the bound is inclusive)
465468
low.set_bits(
466469
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,
468471
);
469472
// type (0b1001 = available 64-bit tss)
470473
low.set_bits(40..44, 0b1001);

0 commit comments

Comments
 (0)