Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions mythril/src/ioapic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use crate::acpi::madt::{Ics, MADT};
use crate::error::{Error, Result};
use crate::lock::ro_after_init::RoAfterInit;
use core::convert::TryFrom;
use core::ops::Range;
use core::fmt;
use core::ops::Range;
use core::ptr;

use arrayvec::ArrayVec;
Expand Down Expand Up @@ -288,8 +288,10 @@ impl IoApic {
/// convenience function to get a Range of the interrupt vectors
/// that should be associated with this IoApic.
pub fn get_ivec_range(&self) -> Range<u32> {
return Range{ start: self.gsi_base, end: self.gsi_base +
(self.max_redirection_entry() as u32) };
return Range {
start: self.gsi_base,
end: self.gsi_base + (self.max_redirection_entry() as u32),
};
}
}

Expand Down