Re: [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: Re: [hatari-devel] Code execution on reset within the emulated Atari
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 19 Jul 2024 11:38:27 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1721381923; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=O++oXhJ4rW0qOcHMAX0Qdi8lXO0wVEWCtc1AYTvIV+4=; b=l2841Dv5lckHknwP35qD+I0ax/EGmW5l7jdCNqVy0m11TVqVfkSoNs0e2s32oDw8+f aO+l+rX4imzt3C6amdXdP7IybZEF4z9fJ0Oej+RBkzPD3+C/qio6Ds8qjSxdgIbGQvsB vpURUuq00bLRXUr+K3+YJ+IUniWCrMxjTiA7dlaqGbzPfjbg1zcyYOPRe1xvsb5bD0sa s3uVmf7Fql2p3xxTF7LHKCodkoFtLGrhDaiCWy/z1Yuk0rVBJhOaSn5H3CRfQQ75Ksi7 pxG8fuhwAURi1Kgf6Re7WXoQZPgZlvrnNysmryHLGpzS+bzSGckCVBmZE1RlGQvz8EoX rE4g==
- Arc-seal: i=1; a=rsa-sha256; t=1721381923; cv=none; d=strato.com; s=strato-dkim-0002; b=Kt6kiOfhCmf0TnIuPCZ/TJssVn2q67YitjVqkjvLUltf+pFQUS6B6YenahbNE/G8Xq bUOfcZfGMWbtObfW5oqaZcmPaJa8yGy3BG4pw5iPl1zmfWmtdtSTmb9lglV72PT8vJwn iUoMrnvEdh7Zb+SGDp8dBEEJ8ni2YykdeNDtygruuaLqwC4Ta+rFhTrxfGKv0RrpX/dR dVp8XeRSIpRZN0AGuXfGlzVjJFdvGr3Guhl25MgDAaqYmOOm1Gw/mAWOy8oeDudqCKmj 5/wyn8Zha3h0gkNqxlYtyoI+7ocumlUrYTq/wvVM2dbyLdUpdy5Up31MamC95DzSqu/v 02QA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1721381923; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=O++oXhJ4rW0qOcHMAX0Qdi8lXO0wVEWCtc1AYTvIV+4=; b=Pw1nZJfSHxy6Vez6Vpx2stB5sNUVyfGI8VTWloUBzFBIoUT/dP+bc60pKa7XA5ShPI X54slMRtfpuWaV7cEHcuSb4R/9oljYq6R8jdI7WUan6yFdoIcVE9DCBJimTzBsSnxC/S So/ZuuMWzTsw0DrOA0ZijeMLQBox4HROShk/a92xrFDzpXD66jAO0WHhp6fkPgZu1vl+ ZM8iXKgnPwgL4W2x/2zfoehnDxABaN/M1aUiFWlYEcQPgf9156PZ+jFK901hG55/YsFz yVWd1Ujx5quOx+TLZXwEYV7CXB0wb+n2AobkuNNcqXmAWsrQ1xSOva8R+SQ6JZ39OWrm KUGw==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1721381923; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=O++oXhJ4rW0qOcHMAX0Qdi8lXO0wVEWCtc1AYTvIV+4=; b=jdnbT/pY3CrrlHyjKqspJsCs7lN+Jxbox1bAakKRs9qkNJ+7bvYbpH3RxCKVKc+3+G dF/HyKuUcvAG9G2g7UCw==
> In aranym it is similar. But after a reset, all the nf_* drivers are reset
> too, which should take care of any handles that are still open (this could
> also be the case for hostfs handles, when the atari crashes badly while file
> handles are open)
This means that aranym detects that os_start is called within the emulated
Atari?
> >Is there any way to execute code in nf_scsidrv.c when os_start is called,
> >i.e. when the Atari is *internally* reset?
>
> You could "invent" a new opcode in the nf_scsi driver for that, and then call
> that in hdrutil before jumping to os_start. But that would only work with
> HDRUTIL then, a better approach would be to fix Hatari.
I would indeed prefer a general approach.