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