From 02323df78a7c9ef1e1d533d95e2abf6db6dd9ac6 Mon Sep 17 00:00:00 2001 From: Ray-V Date: Sun, 6 Aug 2023 21:05:03 +0100 Subject: [PATCH] Fix clang build failure for cputest Signed-off-by: Ray-V --- k9vamps/cputest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k9vamps/cputest.cpp b/k9vamps/cputest.cpp index c26cd3e..a7cd686 100644 --- a/k9vamps/cputest.cpp +++ b/k9vamps/cputest.cpp @@ -21,9 +21,9 @@ /* ebx saving is necessary for PIC. gcc seems unable to see it alone */ #define cpuid(index,eax,ebx,ecx,edx)\ __asm __volatile\ - ("mov %%"REG_b", %%"REG_S"\n\t"\ + ("mov %%" REG_b ", %%" REG_S "\n\t"\ "cpuid\n\t"\ - "xchg %%"REG_b", %%"REG_S\ + "xchg %%" REG_b ", %%" REG_S\ : "=a" (eax), "=S" (ebx),\ "=c" (ecx), "=d" (edx)\ : "0" (index));