mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-18 08:54:13 +09:00
Author: https://github.com/tomuta
Commit: 3cca9e6704
Pull-request: https://github.com/SerenityOS/serenity/pull/8819
Issue: https://github.com/SerenityOS/serenity/issues/8710
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