Skip to content

Commit 290d0c6

Browse files
committed
formatting
1 parent 7e01e80 commit 290d0c6

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
@@ -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);

0 commit comments

Comments
 (0)