[hatari-devel] Code execution on reset within the emulated Atari |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Code execution on reset within the emulated Atari
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 19 Jul 2024 11:18:24 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1721380721; s=strato-dkim-0002; d=strato.com; h=Message-ID:Subject:To:From:Date:Cc:Date:From:Subject:Sender; bh=Y75jMs7xGVs8pj1eSNAKipTnM9u848e9E04pluV433M=; b=XLrjbm90aBG9Pa9fUNrYhMtqzk9C9wmSA5hE6Gf+egWVDq96gTcRrBbCcCmkFdFl75 JhpxByi7x6HzSdZx755F1KiqbeBeL1tzVyjPJrGj1+K1rbPT9Kx7sqkzWFjHzZL2dlex UZDc2bzqFx8KwVCilMEVI+6wi5+U4Xc4mORHRNbd8IT7clCgqAH4Sh9DUQheZdLzb29X 2TQoNCa0j2mbmBarmR+G6nAbnXgFsXMLI6CKZbGz9b6aXZ4lPxmDibNhLb6CENoK4tbz b0SlXIFXFAgjt0wW9MvmnqWWE/2IpOgdHfwK8P+Hee7pDgpi/ps4bje9xEuPfbGEO8Ke XjVA==
- Arc-seal: i=1; a=rsa-sha256; t=1721380721; cv=none; d=strato.com; s=strato-dkim-0002; b=UnneV8WcbP9+2Xd8RaCbT0srH2sZlUfa+WdPXwcLsJDgzDjWEciQY6G4sSV+5Eqgn5 hUgcbwadOwICleO2xbn3GpgvrbjEu3A69tTAVs3KT3ps7rI8o5ZSOZ5dGGU6q2PxV26u sSgzGX6lhkJ8SkXAqYwroBI1uIloegu3O+FmkQFdPP/JodePPCG46ROMikhukmaYWsHZ q6C1EI4DaRxSKgwU/6bMxftSVf5Vcie1P7lvJ5iYEP/cyKRTnaUS7g2CZ/wH1yjZBhCm FK1y2evkT0plOMBcBfy4rUGTn9LZ60gNlDOsiogYlX4M/d9uaY4z2rieGAcTmB/6aKl0 rl2Q==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1721380721; s=strato-dkim-0002; d=seimet.de; h=Message-ID:Subject:To:From:Date:Cc:Date:From:Subject:Sender; bh=Y75jMs7xGVs8pj1eSNAKipTnM9u848e9E04pluV433M=; b=kTZevp2jXvck6wR3RRWrWhfwpZ3hHe1GO34srxBEVmAriwzlDPQ/smfuHoOR1d3SBH FMW2eWOAqTWtQNOWT7+b3DbmrqBCRf3tcsTkP+27XhChRhYV/dIlsiJAYZjgPIfLAtIi wXeYHQHmLA7aWkELNPcQkT0q+UUHEdBMbaRGbS7wGvzYNIaJpzYwLZGchfk87nCugYzD 9SU5pU6UyUHMLv8Rm1DksCMKgcXUxz0uMU/wI9ckPhLF7WPRlGW3rdj5RpIsx0UeoFa5 VvE15tDZwvJp3Rn+RCpVplsX9g5zweNXs9EUp2zPdsIV+K9WPjzQ4nAcqRBpWdrQ5kI1 f9+Q==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1721380720; s=strato-dkim-0003; d=seimet.de; h=Message-ID:Subject:To:From:Date:Cc:Date:From:Subject:Sender; bh=Y75jMs7xGVs8pj1eSNAKipTnM9u848e9E04pluV433M=; b=EKKbvoj+Oi1Ev7Dv+A+Q1fhxsJ6CT5NxLINjZ4pSNa9yhbjTc02SZ8Iwe0HrWUzojv zDmrJ8hpR2vlVEmIrBCA==
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