Kernel: Implement super simple PRNG

This commit is contained in:
2024-02-12 04:25:06 +02:00
parent ff49d8b84f
commit b45d27593f
4 changed files with 65 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#include <kernel/PCI.h>
#include <kernel/PIC.h>
#include <kernel/Process.h>
#include <kernel/Random.h>
#include <kernel/Scheduler.h>
#include <kernel/Syscall.h>
#include <kernel/Terminal/Serial.h>
@@ -153,6 +154,9 @@ extern "C" void kernel_main(uint32_t boot_magic, uint32_t boot_info)
dprintln("Virtual TTY initialized");
}
Random::initialize();
dprintln("RNG initialized");
MUST(Scheduler::initialize());
dprintln("Scheduler initialized");