mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:47:43 +00:00
Kernel: Initialize TimeManagement before using KernelRNG
We should initialize the timers before KernelRNG as the RNG may want to utilize system time as an entropy source. Fixes #8710
This commit is contained in:
parent
7bdd66ed89
commit
3cca9e6704
1 changed files with 3 additions and 2 deletions
|
@ -144,14 +144,15 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init()
|
||||||
InterruptManagement::initialize();
|
InterruptManagement::initialize();
|
||||||
ACPI::initialize();
|
ACPI::initialize();
|
||||||
|
|
||||||
|
// Initialize TimeManagement before using randomness!
|
||||||
|
TimeManagement::initialize(0);
|
||||||
|
|
||||||
__stack_chk_guard = get_fast_random<u32>();
|
__stack_chk_guard = get_fast_random<u32>();
|
||||||
|
|
||||||
ProcFSComponentRegistry::initialize();
|
ProcFSComponentRegistry::initialize();
|
||||||
Thread::initialize();
|
Thread::initialize();
|
||||||
Process::initialize();
|
Process::initialize();
|
||||||
|
|
||||||
TimeManagement::initialize(0);
|
|
||||||
|
|
||||||
Scheduler::initialize();
|
Scheduler::initialize();
|
||||||
|
|
||||||
dmesgln("Starting SerenityOS...");
|
dmesgln("Starting SerenityOS...");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue