Messages in this thread | | | Date | Thu, 31 Jul 2003 16:10:20 +0100 | From | Jamie Lokier <> | Subject | Re: TSCs are a no-no on i386 |
| |
Alan Cox wrote: > On Mer, 2003-07-30 at 22:50, Petr Vandrovec wrote: > > There is no such instruction. Skip LOCK prefix and decode again, > > you'll get either cmpxchg or xadd (or cmpxchg8b, but then it does > > not work on i486 too). > > And if the byte you are looking at was patched by another thread you've > blown it. Your emulation can only be so good 8) People do stuff like > patching instructions under software decode as a robustness check - its > normally pretty amusing
On a uniprocessor 386, this is not a problem. Just disable preemption in the kernel decoder.
Of course if you do it in userspace using SIGILL, then it is broken :)
-- Jamie
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |