Re: [hatari-devel] Fast-boot option and SCSI |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Fast-boot option and SCSI
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 30 Aug 2020 00:43:19 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1598741001; bh=Cp0s5ojbUGNwMoFKHHd2uK7OVqSX3+mM3k06CXuu/uE=; h=Date:From:To:Subject:From; b=FXt3L1u0YYF3N6TIsOe7gfLD0ktx3RtiCsPBV1AtSW8KO7mtw5ijhpiFBv2J8AW1H oUVBtB3lziMtFImJcojl1wFfXliK4lUiX4nMHnINqDou/y6mXH0M9/Tj/RCq97k1kp 32OZEAB8P+wotfd9nmpIq45WiZSDDe9Hl2v3mFmEI+yeQWmGvSn9JpH7fDw1uLMqgD 25cJ5UmAuEZFIg5NdIRl4P/C1+4VUXmCBOEDeBx7ly7JDiMkz6nVBy+PeguRicoaae PQTHqwe3U7m7V5TkLy3UZcsef3S7sC1HLUr5yHYq9A7U1HfAOkZjy/zngF/6s9DjEK 3bGkekxeK8mjQ==
Am Mon, 17 Aug 2020 13:03:01 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> Hi,
>
> 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)
> return;
>
> - if (ACSI_EMU_ON || ConfigureParams.Ide[0].bUseDevice)
> + if (ACSI_EMU_ON || ConfigureParams.Ide[0].bUseDevice ||
> ConfigureParams.Scsi[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.
Thomas