* [PATCH 2/3] x86: verify_cpu: use XOR for CPUID.EAX=0
@ 2018-05-17 21:31 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2018-05-17 21:31 UTC (permalink / raw)
To: tglx, mingo, hpa; +Cc: x86, linux-kernel
MOV eax, imm32 is 5 bytes. XOR eax, eax is 2 bytes.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/x86/kernel/verify_cpu.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/kernel/verify_cpu.S
+++ b/arch/x86/kernel/verify_cpu.S
@@ -51,7 +51,7 @@ ENTRY(verify_cpu)
jz .Lverify_cpu_no_longmode # cpu has no cpuid
#endif
- movl $0x0,%eax # See if cpuid 1 is implemented
+ xor %eax, %eax # See if cpuid 1 is implemented
cpuid
cmpl $0x1,%eax
jb .Lverify_cpu_no_longmode # no cpuid 1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-17 21:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 21:31 [PATCH 2/3] x86: verify_cpu: use XOR for CPUID.EAX=0 Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.