Home
last modified time | relevance | path

Searched refs:MAX_CPU_NUM (Results 1 – 15 of 15) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dpercpu.rs17 static CPU_NUM_ATOMIC: AtomicU32 = AtomicU32::new(PerCpu::MAX_CPU_NUM);
24 pub const MAX_CPU_NUM: u32 = 128; constant
26 pub const MAX_CPU_NUM: u32 = 64; constant
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs28 static mut __CPU_PENDING: Option<Box<[VecStatus; PerCpu::MAX_CPU_NUM as usize]>> = None;
42 [VecStatus::default(); PerCpu::MAX_CPU_NUM as usize], in softirq_init()
45 for i in 0..PerCpu::MAX_CPU_NUM { in softirq_init()
122 let mut percpu_count = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
123 percpu_count.resize_with(PerCpu::MAX_CPU_NUM as usize, || AtomicI16::new(0)); in new()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dtable.rs35 tss: [TaskStateSegment; PerCpu::MAX_CPU_NUM as usize],
41 tss: [TaskStateSegment::new(); PerCpu::MAX_CPU_NUM as usize], in new()
/DragonOS/kernel/src/arch/x86_64/smp/
H A Dmod.rs104 phys_id: [usize; PerCpu::MAX_CPU_NUM as usize],
146 phys_id: [0; PerCpu::MAX_CPU_NUM as usize],
152 ia64_cpu_to_sapicid: RwLock<[Option<usize>; PerCpu::MAX_CPU_NUM as usize]>,
158 ia64_cpu_to_sapicid: RwLock::new([None; PerCpu::MAX_CPU_NUM as usize]), in new()
/DragonOS/kernel/src/process/
H A Didle.rs34 let mut v: Vec<Arc<ProcessControlBlock>> = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in init_idle()
36 for i in 0..PerCpu::MAX_CPU_NUM { in init_idle()
H A Dmod.rs145 for _ in 0..PerCpu::MAX_CPU_NUM { in init_switch_result()
/DragonOS/kernel/src/arch/x86_64/
H A Dacpi.rs19 if cnt.data() >= PerCpu::MAX_CPU_NUM { in early_acpi_boot_init()
/DragonOS/kernel/src/arch/riscv64/
H A Dcpu.rs119 for i in 0..PerCpu::MAX_CPU_NUM { in init_local_context()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs91 let mut data = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
92 for i in 0..PerCpu::MAX_CPU_NUM { in new()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dxapic.rs21 static mut XAPIC_INSTANCES: [RefCell<Option<XApic>>; PerCpu::MAX_CPU_NUM as usize] =
22 [const { RefCell::new(None) }; PerCpu::MAX_CPU_NUM as usize];
H A Dapic_timer.rs33 static mut LOCAL_APIC_TIMERS: [RefCell<LocalApicTimer>; PerCpu::MAX_CPU_NUM as usize] =
34 [const { RefCell::new(LocalApicTimer::new()) }; PerCpu::MAX_CPU_NUM as usize];
/DragonOS/kernel/src/libs/
H A Dcpumask.rs15 let bmp = AllocBitmap::new(PerCpu::MAX_CPU_NUM as usize); in new()
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs32 static SBI_TIMER_INIT_BMP: SpinLock<StaticBitmap<{ PerCpu::MAX_CPU_NUM as usize }>> =
/DragonOS/kernel/src/sched/
H A Dmod.rs981 CPU_IRQ_TIME = Some(Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize)); in sched_init()
985 .resize_with(PerCpu::MAX_CPU_NUM as usize, || Box::leak(Box::default())); in sched_init()
987 let mut cpu_runqueue = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in sched_init()
988 for cpu in 0..PerCpu::MAX_CPU_NUM as usize { in sched_init()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs407 (0..PerCpu::MAX_CPU_NUM) in riscv_sifive_plic_init()