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.
This commit is contained in:
Andreas Kling 2020-03-28 09:38:59 +01:00
parent 660ec504ca
commit c50fbf6da0
Notes: sideshowbarker 2024-07-19 08:06:04 +09:00
4 changed files with 0 additions and 809 deletions

View file

@ -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.