lkml.org 
[lkml]   [2003]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:3.794 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site