On Wed, Nov 08, 2000 at 10:10:45AM -0800, Linus Torvalds wrote:
> 
> Now, I could imagine that Intel would select an instruction that didn't
> work on Athlon on purpose, but I really don't think they did.  I don't
> have an athlon to test.
> 
> It's easy enough to generate a test-program. If the following works,
> you're pretty much guaranteed that it's ok
> 
>       int main()
>       {
>               printf("Testing 'rep nop' ... ");
>               asm volatile("rep ; nop");
>               printf("okey-dokey\n"); 
>               return 0;
>       }
> 
> (there's not much a "rep nop" _can_ do, after all - the most likely CPU
> extension would be to raise an "Illegal Opcode" fault).
> 

Just for the curious, this works on Athlons. :)


BAPper
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to