Fix i686 compilation.

This commit is contained in:
4lDO2
2024-03-05 10:26:57 +01:00
parent b35c9d1e62
commit d38d8b66bd
8 changed files with 52 additions and 71 deletions
+8 -2
View File
@@ -1,8 +1,10 @@
//! Global descriptor table
use core::{convert::TryInto, mem, ptr::addr_of_mut};
use core::ptr::addr_of_mut;
use core::{convert::TryInto, mem, cell::{Cell, RefCell}};
use core::sync::atomic::AtomicBool;
use crate::LogicalCpuId;
use crate::cpu_set::LogicalCpuId;
use x86::{
bits32::task::TaskStateSegment,
@@ -214,7 +216,11 @@ pub unsafe fn init_paging(stack_offset: usize, cpu_id: LogicalCpuId) {
pcr.percpu = crate::percpu::PercpuBlock {
cpu_id,
switch_internals: Default::default(),
current_addrsp: RefCell::new(None),
new_addrsp_tmp: Cell::new(None),
wants_tlb_shootdown: AtomicBool::new(false),
};
crate::percpu::init_tlb_shootdown(cpu_id, &mut pcr.percpu);
}
#[derive(Copy, Clone, Debug)]
+1 -1
View File
@@ -10,7 +10,7 @@ use rmm::{
};
use spin::Mutex;
use crate::LogicalCpuId;
use crate::cpu_set::LogicalCpuId;
use super::CurrentRmmArch as RmmA;
+1 -1
View File
@@ -16,7 +16,7 @@ use crate::{
log::{self, info},
memory,
paging::{self, KernelMapper, PhysicalAddress, RmmA, RmmArch, TableKind},
LogicalCpuId,
cpu_set::LogicalCpuId,
};
/// Test of zero values in BSS.