Clippy fix
This commit is contained in:
parent
df5208827c
commit
ffdad93fed
@ -33,6 +33,7 @@ impl ModifyFlags for Descriptor {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
trait ModifyAccess {
|
||||
fn set_access(self, access: u8) -> Self;
|
||||
}
|
||||
@ -43,7 +44,7 @@ impl ModifyAccess for Descriptor {
|
||||
Descriptor::UserSegment(_) => todo!(),
|
||||
Descriptor::SystemSegment(a, b) => {
|
||||
Descriptor::SystemSegment(a.with_bits(40..=47, access.bits(0..=7).into()), b)
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,10 +42,15 @@ use x86_64::{
|
||||
|
||||
use crate::{
|
||||
arch::{
|
||||
asm::{self, ltr, str}, x86_64::{
|
||||
cpuid::{CPUID, virt_supported}, gdt::{SELECTORS, SegmentType, TSS, dump_gdt}, interrupts::get_lapic_addr,
|
||||
asm::{self, ltr, str},
|
||||
x86_64::{
|
||||
cpuid::{CPUID, virt_supported},
|
||||
gdt::{SELECTORS, dump_gdt},
|
||||
interrupts::get_lapic_addr,
|
||||
},
|
||||
}, boot::modules::MODULE_RESPONSE, memory::paging::{self, active_root_table, map_page, phys_to_virt},
|
||||
},
|
||||
boot::modules::MODULE_RESPONSE,
|
||||
memory::paging::{self, active_root_table, map_page, phys_to_virt},
|
||||
};
|
||||
|
||||
lazy_static! {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user