From c2c863c7f3d8cea70b3c11b9f073aa88f5224a75 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 1 Feb 2016 23:42:09 +0100 Subject: [PATCH] Use `cmp` and `je` instead of `xor` and `jz` --- src/arch/x86_64/boot.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86_64/boot.asm b/src/arch/x86_64/boot.asm index 7ee4c9e7..58bbed04 100644 --- a/src/arch/x86_64/boot.asm +++ b/src/arch/x86_64/boot.asm @@ -139,8 +139,8 @@ check_cpuid: ; Compare EAX and ECX. If they are equal then that means the bit wasn't ; flipped, and CPUID isn't supported. - xor eax, ecx - jz .no_cpuid + cmp eax, ecx + je .no_cpuid ret .no_cpuid: mov al, "1"