diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
| commit | edd15150f34b040d5ab68a1b418705c0de895a1e (patch) | |
| tree | 0f0c7fc7d4440b76607169cf33dd3e3267b6e44a /Kernel/Patches/BlkDevAddFDC.HC | |
| parent | 26fd4c3343fb5a55ac8b305a6adea3212e3d7fdd (diff) | |
| download | templeos-floppy-driver-edd15150f34b040d5ab68a1b418705c0de895a1e.tar.gz | |
Re-arrange patch files
Some of the patches are applied to files in subdirectories of ::/Kernel and ::/Adam. The directory tree has been re-arranged in such a way as to allow them to be #included without having the compiler backtrack to their parent directory.
Diffstat (limited to 'Kernel/Patches/BlkDevAddFDC.HC')
| -rw-r--r-- | Kernel/Patches/BlkDevAddFDC.HC | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Kernel/Patches/BlkDevAddFDC.HC b/Kernel/Patches/BlkDevAddFDC.HC deleted file mode 100644 index 1f9e75a..0000000 --- a/Kernel/Patches/BlkDevAddFDC.HC +++ /dev/null @@ -1,28 +0,0 @@ -// PATCH: Add the ability to create floppy drvs -// FILE: ::/Kernel/BlkDev/DskAddDev.HC -// TO INSTALL: #include this file at the end of the switch statement. - -case BDT_FLOPPY: - dv->dv_signature=DRV_SIGNATURE_VAL; - if (!BlkDevInit(bd)) - dv->dv_signature=0; - else { - dv->dv_signature=0; - if (make_free) - dv=DrvMakeFreeSlot(bd->first_drive_let); - else - dv=DrvMakeFreeSlot(DrvNextFreeLet(bd->first_drive_let)) - if (bd->heads!=FDCChk(bd)) - dv->fs_type=FSt_UNKNOWN; - else { - FDCReadBlks(bd,&br,0,1); - if (br.signature==MBR_PT_REDSEA && br.signature2==0xAA55) { - dv->dv_signature=DRV_SIGNATURE_VAL; - dv->bd=bd; - dv->fs_type=FSt_REDSEA; - RedSeaInit(dv); - } else - dv->fs_type=FSt_UNKNOWN; - } - } - break;
\ No newline at end of file |
