Skip to content

Commit

Permalink
Merge pull request #1753 from ghaerr/cmos
Browse files Browse the repository at this point in the history
[direct floppy] Assume 360k floppy if no CMOS drives set
  • Loading branch information
ghaerr authored Oct 9, 2023
2 parents 316cf0b + 41031d4 commit 5f5f53d
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 5f5f53d

Please sign in to comment.