Clippy fix
This commit is contained in:
parent
e753cd09b0
commit
bf5b289359
@ -146,7 +146,7 @@ pub fn main() {
|
|||||||
tasking::store_initial_fpu_state();
|
tasking::store_initial_fpu_state();
|
||||||
Cr0::update(|cr0| {
|
Cr0::update(|cr0| {
|
||||||
cr0.insert(Cr0Flags::TASK_SWITCHED);
|
cr0.insert(Cr0Flags::TASK_SWITCHED);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
gdt::init();
|
gdt::init();
|
||||||
Lazy::force(&PHYSICAL_MEMORY);
|
Lazy::force(&PHYSICAL_MEMORY);
|
||||||
|
@ -704,7 +704,7 @@ impl Tasking {
|
|||||||
pub fn set_tls_key(&self, key: usize, val: u64) {
|
pub fn set_tls_key(&self, key: usize, val: u64) {
|
||||||
self.current_thread(|thread| {
|
self.current_thread(|thread| {
|
||||||
thread.tls_values.lock()[key] = val;
|
thread.tls_values.lock()[key] = val;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_tls_key(&self, key: usize) -> u64 {
|
pub fn get_tls_key(&self, key: usize) -> u64 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user