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

Re: [MiNT] Corruption of high TPA



On Thu, 2009-06-11 at 14:53 +0200, Vincent Rivière wrote:
> Vincent Rivière wrote:
> > 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.
> 
> Hello, Konrad.
> 
> Finally, you were totally right !
> I have been fooled because there was the same bug in the FreeMiNT kernel and 
> in EmuTOS.
> 
> Thanks to Petr Stehlik and Thomas Huth, EmuTOS has been fixed yesterday.
> 
> Now about the FreeMiNT kernel. The problem becomes visible only when memory 
> protection is enabled.

I'm pretty sure I have memory protection enabled here when I did the
test. Why don't I see the problem ??

Alan.