From: Mikael Pettersson Date: Tue, 11 Mar 2008 15:43:31 +0000 (+0100) Subject: x86: correct/clarify comment in nops.h X-Git-Tag: MMI-PSA29.97-13-9~35624^2~416 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d570cbbf25a62e9c077f5b351fb142dbfc67288;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git x86: correct/clarify comment in nops.h describes certain multibyte instructions as "generic" nops when in fact they aren't nops at all in 64-bit mode (missing REX.W causing truncation of a register). Update the comment to state that K8 or P6 style nops should be used in 64-bit mode. This matches what the alternatives code does. Signed-off-by: Mikael Pettersson Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/nops.h b/include/asm-x86/nops.h index b3930ae539b3..ad0bedd10b89 100644 --- a/include/asm-x86/nops.h +++ b/include/asm-x86/nops.h @@ -5,6 +5,8 @@ /* generic versions from gas 1: nop + the following instructions are NOT nops in 64-bit mode, + for 64-bit mode use K8 or P6 nops instead 2: movl %esi,%esi 3: leal 0x00(%esi),%esi 4: leal 0x00(,%esi,1),%esi