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

Re: [MiNT] what's wrong with this code?



mikro <mikro@hysteria.sk> writes:

>> Check out VBR.  It might be non-zero.
>>
> nice tip, however, it doesn't help. I've tried replacing it with the simple
> Super() call, still no success. So I guess there's something bad with MiNT's
> exception/process handling because if I remove everything between move from
> a7 and to a7, it works. If I use just small loop (30-40 cycles) which use
> this a7, it works let's say 10 seconds. And if I use long loop (thousands of
> cycles) it freezes very fast.

That looks to me like you are accidentally clobbering the interrupt stack
pointer.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."