Re: [hatari-devel] [REGRESSION] Access to non-existant IDE slave crashes Hatari |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] [REGRESSION] Access to non-existant IDE slave crashes Hatari
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Tue, 17 Nov 2020 10:59:07 +0100
- Autocrypt: addr=czietz@xxxxxxx; prefer-encrypt=mutual; keydata= mQGiBDdn2AURBADksdHVyN55nv0lx4qGx+GQMrbo7zs7lSkAfhkgmgqp84xUeUiWI/kj1on/ wxkmJ96Yzt0ktDbZYM0C9Z66M3rLfXE1vXALHhegeMuOy/tVWybcohRrhfB7tmANTESJOZke 0lZZ59DcIfFoqLYErb6qX8nLPYnOv6sFubxnhuF9QQCg/3GaIR1sVK9Xq+b4B9BtVxd7cHMD /i2hAEOX3WY3K7PNZJziYF54uBbGiVS88W41l1RARcaeogIZcAKpFH3on+Tf60fAC85MCp17 QIeP44hj4Cf46B+UTVhf3EFG4IOsLRxUonpt7dKO8txsKFN/OFsjlPOuDyg7XMpEWkTWZetm HC9/0pcApIXSDnggde4T8AX6nn/+A/4hBOhPxuvkV7Uw/ebLYwXrLo2vt9OvvC1VfeywNseq PIkFX/+n/+niBS+Cb2ess2SVQNKJ9vP5+vBxg5AMfQXqk1ONldGQ/ARHmL6+Iuo47mO51e7R i691hq13wHUvyKh1AN7fpKI2m3YW55XEQ+3iTMIZcqfjr6xYgG8GJTppdbQgQ2hyaXN0aWFu IFppZXR6IDxjemlldHpAZ214Lm5ldD6IYwQQEQIAIwIZAQIeAQIXgAUCVGD5IgcLCQgHAwIB BhUIAgkKCwQWAgMBAAoJEFLLl/ZtoCXKubQAoIHNaurSMQB8MHDoTk3B7WHk2ApoAJ0egA8q aNoVj0kU4+OjeGzFiSHMOrQnVGhhd3RlIEZyZWVtYWlsIE1lbWJlciA8Y3ppZXR6QGdteC5u ZXQ+iEYEMBECAAYFAj0kaTcACgkQUsuX9m2gJcpF2ACgqnOdNapnRmIl9MJ+TTajrRyTdGYA n3plJTH6XTX6wsQMwD7TCO1bT/8UuQINBDdn2AUQCAD2Qle3CH8IF3KiutapQvMF6PlTETlP tvFuuUs4INoBp1ajFOmPQFXz0AfGy0OplK33TGSGSfgMg71l6RfUodNQ+PVZX9x2Uk89PY3b zpnhV5JZzf24rnRPxfx2vIPFRzBhznzJZv8V+bv9kV7HAarTW56NoKVyOtQa8L9GAFgr5fSI /VhOSdvNILSd5JEHNmszbDgNRR0PfIizHHxbLY7288kjwEPwpVsYjY67VYy4XTjTNP18F1dD ox0YbN4zISy1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWakXUGf nHy9iUsiGSa6q6Jew1XpMgs7AAICB/4mG5zJkPM5YaG317RTvWQLZvEg6viLP4AN3ezFLrai SuhwdekH3NgOGYnvgEV8LvEx31vBY2PthHTKJR07Njbs5xdwSRWaFUFboCrG5EAp+Zgy++fJ HnPk4/q+DZhLOA6aihzm96q5rlgiMuYWS5GWCUuISB1b2A8EW2Ks2rE60CpLERxGtuVKfwkE RTnUiLpJVW6jWdc4/XWDytU7hi8QQPz2kdPiOAtm7i2HU36YO6Y1mWrJQjFni1DLDdfY5a8R spYafaOHRnLBqiZROlUD7CLDGd1rA/jSijAVhPws14u19nKrrE+lCZPYNo2E/iB3LeqQN+eZ eRzbMUxi6RejiD8DBRg3Z9gFUsuX9m2gJcoRAoDdAJ9Mmy1jNe6tu31mehNTdIVBCYbT/ACg 1f3WdYyexLsk56k8DM5SiR7gAiI=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605607153; bh=thlT8mgulNZNZFZyvZKuGEvTmYwlUjmd9DfyvgVvl1o=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=aou4JZmDl9LgUov5ny4meSToqHnEaOngfBWz9FsZ2m4FEE2MfK7rdEWCsm6ARjLcH 8aVceXGRpt2I1dL/UWXnAvQj0HOElWMjoYIXZgXBQ9XlRXeYA2K8Ww1qUyihwa2KuK YCueDPzLcy3Ewv/vFYbZJmnw4UqomfuyWyt/SuKs=
Thomas Huth schrieb:
> I gave this a very quick try, but I was not able to reproduce the
> crash. Which machine type did you use? Did you use the GUI or the CLI
> to configure the IDE drive? Fast-boot enabled or disabled? Please
> provide exact steps how you ran Hatari.
Please find attached my configuration file and everything else that is
needed to reproduce the crash. As mentioned in my previous post, I was
using Hatari as of commit #1797e220:
http://antarctica.no/~hatari/hatari-1797e220/windows/
I still believe that any reports of critical regressions (and crashing
Hatari from a TOS program imho is such) should be investigated by more
than "a very quick try".
Further debugging Hatari's code shows the precise crash location to be
in ide_data_readw(), caused by the fact that s->data_ptr is NULL for the
(non-existant) slave device.
https://git.tuxfamily.org/hatari/hatari.git/tree/src/ide.c#n2457
> Anyway, thanks for providing the crash_hatari.S source code. Looking at
> that file, I wonder whether there is another bug in Hatari: You don't
> switch to supervisor mode before accessing the registers ... Is it
> possible to access the IDE registers in user mode on a real Falcon? I
> don't believe so, but could somebody who has a Falcon easily
> available please check this, just to be sure?
At least a lot of third-party IDE interfaces allow register access in
user mode, as well. Furthermore, the STBook was the other Atari with
built-in IDE. It becomes apparent from the STBook schematic that IDE
register access is possible there in either supervisor or user mode.
Hence, I wouldn't be surprised if Atari kept it that way for the Falcon.
Regards
Christian
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA
Attachment:
hatari-crash.7z
Description: Binary data