Kernel: Introduce the MemoryDevice

This is a character device that is being used by the dmidecode utility.
We only allow to map the BIOS ROM area to userspace with this device.
This commit is contained in:
Liav A
2021-01-29 14:03:25 +02:00
committed by Andreas Kling
parent df59b80e23
commit 5ab1864497
6 changed files with 235 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include <Kernel/Devices/FullDevice.h>
#include <Kernel/Devices/I8042Controller.h>
#include <Kernel/Devices/MBVGADevice.h>
#include <Kernel/Devices/MemoryDevice.h>
#include <Kernel/Devices/NullDevice.h>
#include <Kernel/Devices/RandomDevice.h>
#include <Kernel/Devices/SB16.h>
@@ -262,6 +263,7 @@ void init_stage2(void*)
Syscall::initialize();
new MemoryDevice;
new ZeroDevice;
new FullDevice;
new RandomDevice;