Roman Zippel <zippel@xxxxxxxxxxxxxx> writes:
Are you sure about that?
Yes, I wrote that line of code initially, IIRC. :-)
Right now we don't trace kernel code and the 060 documentation says that the trace exception isn't generated for group 2/3 exceptions (which include all user generated exceptions) and my recent testing confirms that.
The 68030 is different. The trace exception is always generated after the insn (including any associated exceptions except interrupts) is completed.
Anyway, I would still expect the cpu to generate a user stack frame, so I still don't see how we should get to the part I removed.
When trap #0 has been executed, the cpu is in supervisor mode. Note that the state of T _before_ execution is relevant for determining whether an insn is traced. See 8.1.7 in the 68030 manual. Andreas. -- Andreas Schwab, SuSE Labs, schwab@xxxxxxx SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html