Re: [hatari-devel] Fast-boot option and SCSI

[ Thread Index | Date Index | More Archives ]


On 8/30/20 1:43 AM, Thomas Huth wrote:
Am Mon, 17 Aug 2020 13:03:01 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
While doing tos-boot Hatari tests for next EmuTOS release, I noticed
a bug in Hatari.

When using SCSI drive with "--fast-boot on" option, boot drive is A:,
not C:.

Thomas, because there can be multiple drives, and
one doesn't necessarily use drive zero, is this
correct fix, or should something more complicated
be done:
--- a/src/floppy.c
+++ b/src/floppy.c
@@ -174,7 +174,7 @@ void Floppy_GetBootDrive(void)
          if (!ConfigureParams.HardDisk.bBootFromHardDisk)

-       if (ACSI_EMU_ON || ConfigureParams.Ide[0].bUseDevice)
+       if (ACSI_EMU_ON || ConfigureParams.Ide[0].bUseDevice ||
                  nBootDrive = 2;  /* Drive C */

I think you could boot from any SCSI disk, not only from the first one.
So it likely would be better to check all SCSI disks here.

What about IDE, can one boot only from the first IDE drive?

	- Eero

Mail converted by MHonArc 2.6.19+