summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-16 00:47:20 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-16 00:47:20 +0100
commit994279d56c0186d7037c64473010718604d7e869 (patch)
treefd5140d08b8e33ad8ce455bd720c2cb5d41a553f /Kernel/init.cpp
parentc6ca6522fc3f1ccb347b902713f6318e3d665ba6 (diff)
downloadserenity-994279d56c0186d7037c64473010718604d7e869.zip
Kernel: Add Device base class for CharacterDevice.
..to prepare for adding a BlockDevice class.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 2c68fc80bd..936985de87 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -66,25 +66,25 @@ VFS* vfs;
Syscall::initialize();
auto dev_zero = make<ZeroDevice>();
- vfs->register_character_device(*dev_zero);
+ vfs->register_device(*dev_zero);
- vfs->register_character_device(*dev_null);
+ vfs->register_device(*dev_null);
auto dev_full = make<FullDevice>();
- vfs->register_character_device(*dev_full);
+ vfs->register_device(*dev_full);
auto dev_random = make<RandomDevice>();
- vfs->register_character_device(*dev_random);
+ vfs->register_device(*dev_random);
auto dev_ptmx = make<PTYMultiplexer>();
- vfs->register_character_device(*dev_ptmx);
-
- vfs->register_character_device(*keyboard);
- vfs->register_character_device(*ps2mouse);
- vfs->register_character_device(*tty0);
- vfs->register_character_device(*tty1);
- vfs->register_character_device(*tty2);
- vfs->register_character_device(*tty3);
+ vfs->register_device(*dev_ptmx);
+
+ vfs->register_device(*keyboard);
+ vfs->register_device(*ps2mouse);
+ vfs->register_device(*tty0);
+ vfs->register_device(*tty1);
+ vfs->register_device(*tty2);
+ vfs->register_device(*tty3);
auto dev_hd0 = IDEDiskDevice::create();
auto e2fs = Ext2FS::create(dev_hd0.copy_ref());