summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-28 09:38:59 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-28 10:09:48 +0100
commitc50fbf6da06b1296d760fd983a3ca19ebccbe02b (patch)
tree8e260fd8e64ff207a668d9063edc86d37ce69407 /Kernel/init.cpp
parent660ec504ca4707ee02e17fdc21a8472defbb0fd2 (diff)
downloadserenity-c50fbf6da06b1296d760fd983a3ca19ebccbe02b.zip
Kernel: Remove the floppy driver
Nobody was using this code, and it was not actively worked on, so let's just not have it. Press F.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 24208a3d7a..5b9777d3c0 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -40,7 +40,6 @@
#include <Kernel/Devices/DebugLogDevice.h>
#include <Kernel/Devices/DiskPartition.h>
#include <Kernel/Devices/EBRPartitionTable.h>
-#include <Kernel/Devices/FloppyDiskDevice.h>
#include <Kernel/Devices/FullDevice.h>
#include <Kernel/Devices/GPTPartitionTable.h>
#include <Kernel/Devices/KeyboardDevice.h>
@@ -310,24 +309,6 @@ void init_stage2()
load_ksyms();
dbg() << "Loaded ksyms";
- // Now, detect whether or not there are actually any floppy disks attached to the system
- u8 detect = CMOS::read(0x10);
- RefPtr<FloppyDiskDevice> fd0;
- RefPtr<FloppyDiskDevice> fd1;
- if ((detect >> 4) & 0x4) {
- fd0 = FloppyDiskDevice::create(FloppyDiskDevice::DriveType::Master);
- klog() << "fd0 is 1.44MB floppy drive";
- } else {
- klog() << "fd0 type unsupported! Type == 0x", String::format("%x", detect >> 4);
- }
-
- if (detect & 0x0f) {
- fd1 = FloppyDiskDevice::create(FloppyDiskDevice::DriveType::Slave);
- klog() << "fd1 is 1.44MB floppy drive";
- } else {
- klog() << "fd1 type unsupported! Type == 0x", String::format("%x", detect & 0x0f);
- }
-
int error;
// SystemServer will start WindowServer, which will be doing graphics.