Skip to content

Commit

Permalink
[direct floppy] Assume 360k floppy if no CMOS drives set
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Oct 9, 2023
1 parent 316cf0b commit 41031d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elks/arch/i86/drivers/block/directfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,8 +1276,8 @@ static unsigned char * INITPROC find_base(int drive, int type)
static void INITPROC config_types(void)
{
printk("df: CMOS ");
base_type[0] = find_base(0, (CMOS_READ(0x10) >> 4) & 0xF);
//base_type[0] = find_base(0, CMOS_360k); /* force 360k FIXME add setup table */
if (!(base_type[0] = find_base(0, (CMOS_READ(0x10) >> 4) & 0xF)))
base_type[0] = find_base(0, CMOS_360k); /* use 360k if no CMOS */
if (((CMOS_READ(0x14) >> 6) & 1) != 0) {
printk(", ");
base_type[1] = find_base(1, CMOS_READ(0x10) & 0xF);
Expand Down

0 comments on commit 41031d4

Please sign in to comment.