[hatari-devel] Code execution on reset within the emulated Atari

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


Hi,

I would like to resolve a minor issue related to the SCSI Driver for Hatari.
When you reset the Atari within the emulation (by calling os_start in SYSHDR)
SCSI Driver handles in nf_scsidrv.c may still be open. With a real Atari
there is no need to close a handle before a reset, because the reset
implicitly clears the handles.
With Hatari it's different, because the external handle in nf_scsidrv.c
remains open after a reset triggered by an application. As a result you
run out of external handles. This happens, for instance, when you partition
a native Linux device with HDDRUTIL and then let HDDRUTIL execute a reset.
The only work-around is to restart Hatari.

Is there any way to execute code in nf_scsidrv.c when os_start is called,
i.e. when the Atari is *internally* reset?

Best regards

Uwe



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