[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES and appl_init()



On 27/02/2013 08:07, Helmut Karlowski wrote:
Why does it work on real hardware and real TOS then?

When you reported that issue on the EmuTOS mailing list, I wrote a testcase calling appl_init() from supervisor mode, and it failed equally on Hatari (or ARAnyM?) with EmuTOS and TOS 4.04.

See the whole thread:
http://sourceforge.net/mailarchive/forum.php?thread_name=op.wrfrvji5ofd6j1%40nebbiolo&forum_name=emutos-devel

And the testcase appl.zip:
http://sourceforge.net/mailarchive/attachment.php?list_name=emutos-devel&message_id=51154B9C.1040605%40freesbee.fr&counter=1

IMHO, since calling appl_init() from supervisor mode is illegal, it might randomly crash or not, depending on data present on USP or somewhere else. It worked in EmuTOS 0.8.7 by chance, but now it crashes.

- Apply my EmuTOS-patch, which would also allow XaAES to run from
EmuTOS (at least in my version).

Your patch was actually detecting the presence of FreeMiNT, then avoiding the call scrp_write() to artificially avoid the crash. While it was a good workaround, it can't be a clean solution.

--
Vincent Rivière