1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Kernel: Ensure that HPET is initialized before using random the first time

This commit is contained in:
Maciej Zygmanowski 2021-01-23 11:42:19 +01:00 committed by Andreas Kling
parent 97234a5b9d
commit 67e93745cb

View file

@ -144,10 +144,10 @@ extern "C" [[noreturn]] void init()
klog() << "Starting SerenityOS...";
__stack_chk_guard = get_fast_random<u32>();
TimeManagement::initialize(0);
__stack_chk_guard = get_fast_random<u32>();
NullDevice::initialize();
if (!get_serial_debug())
new SerialDevice(SERIAL_COM1_ADDR, 64);