lkml.org 
[lkml]   [2018]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/3] x86: verify_cpu: use XOR for CPUID.EAX=0
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
\
 
 \ /
  Last update: 2018-05-17 23:32    [W:0.426 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site