Kernel/riscv64: Set g_total_processors to a hard-coded value of 1

This value is used by the NVMe driver to determine the number of queues
to create.
This commit is contained in:
Sönke Holz 2024-02-22 19:40:38 +01:00 committed by Andrew Kaster
parent 58a2e6412c
commit 6a223c6210
Notes: sideshowbarker 2024-07-17 07:20:49 +09:00

View File

@ -113,6 +113,9 @@ void ProcessorBase<T>::initialize(u32)
{
m_deferred_call_pool.init();
// FIXME: Actually set the correct count when we support SMP on riscv64.
g_total_processors.store(1, AK::MemoryOrder::memory_order_release);
// Enable the FPU
auto sstatus = RISCV64::CSR::SSTATUS::read();
sstatus.FS = RISCV64::CSR::SSTATUS::FloatingPointStatus::Initial;