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

Re: [MiNT] Corruption of high TPA



Konrad M. Kokoszkiewicz wrote :
Is memory protection enabled in your setup? If so, setting the sp at the end of the TPA will, IIRC, cause the program to crash at the nearest system call. This is so because the kernel entry code copies similar amount of bytes from the user stack to the supervisor stack. Because it does not know, how many bytes it should copy, it always copies the maximum amount, and there are kludges in the kernel to fix the sp at the correct value, when the program starts, but if you set it "manually", it will not work.

Thanks for your hints.

I have made further tests, this problem occurs only in ARAnyM + EmuTOS, even on the EmuTOS early console. So it is unrelated to the MiNT kernel, AUTO folder, AES or accessories.

However, if you feel there is something wrong by setting the stack like that, it must be investigated carefully, because the MiNTLib has been doing that for ages.

--
Vincent Rivière