mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
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:
parent
58a2e6412c
commit
6a223c6210
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/spholz Commit: https://github.com/SerenityOS/serenity/commit/6a223c6210 Pull-request: https://github.com/SerenityOS/serenity/pull/23364 Reviewed-by: https://github.com/ADKaster ✅
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user