Re: [hatari-devel] Re: Hatari floppy drive detection with EmuTOS

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi David,
On 16 Jan 2014 at 20:33, David Savinkoff wrote:
> 
> I just compiled EmuTOS two different ways:
> 
> --- emutos/bios/floppy.c	2014-01-13 20:04:47.000000000 -0800
> +++ emutos/bios/floppy.c	2014-01-16 18:29:43.000000000 -0800
> @@ -292,7 +292,7 @@
>  #if CONF_WITH_FDC
>      floplock(dev);
>      select(dev, 0);
> -    set_fdc_reg(FDC_CS, FDC_RESTORE | finfo[dev].actual_rate);
> +    set_fdc_reg(FDC_CS, FDC_RESTORE | FDC_HBIT | finfo[dev].actual_rate);
>      if(timeout_gpip(TIMEOUT)) {
>          /* timeout */
>          KDEBUG(("flop_detect_drive(%d) timeout\n",dev));
> 
> The first way is:
> -    set_fdc_reg(FDC_CS, FDC_RESTORE | finfo[dev].actual_rate);
> This way has the problems as currently noted.
> 
> The second way disables spin-up:
> +    set_fdc_reg(FDC_CS, FDC_RESTORE | FDC_HBIT | finfo[dev].actual_rate);
> This way works in Hatari.
> 
Are you running Hatari with just floppy disks enabled (no ACSi disk, no GEMDOS 
disk) and no "patch timer D", no "boot faster ..." ?  Under these conditions, 
EmuTOS does not see drive B on my system.

If you have a GEMDOS disk, for sure you will see two drives due to Hatari 
patching the drivebits.

Roger




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/