Re: [hatari-devel] TT emulation crashes when there is no ACSI drive

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


Thomas Huth schrieb:

> Am Mon, 12 Aug 2019 05:09:48 +0200
> schrieb Thorsten Otto <admin@xxxxxxxxxxx>:
>> At least in the freshly executed Program, the SR will be reset to
>> zero, so i don't think that disabling interrupts will help much.

> But the freshly executed program will have a new stack, won't it? So
> there should be at least some space again...

Yes, a new process will not inherit the stack (neither user nor
supervisor) from the caller. Therefore, in this case only the "AUTO
runner" process itself [1] is critical because it sets up a very small
stack.

Regards
Christian

[1]
<https://github.com/sarnau/AtariSTRomListings/blob/622ccfdd120cdbb9a005b7de84a4562bf9dc28da/TOS206%2C206STBook%2C206.asm#L2596>.
It then calls Pexec in line 2634.
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA



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