mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
df59b80e23
commit
5ab1864497
Notes:
sideshowbarker
2024-07-18 22:39:27 +09:00
Author: https://github.com/supercomputer7
Commit: 5ab1864497
Pull-request: https://github.com/SerenityOS/serenity/pull/5163
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bcoles
Reviewed-by: https://github.com/linusg
6 changed files with 235 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue