summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay-V <[email protected]>2023-08-06 21:05:03 +0100
committerSlávek Banko <[email protected]>2023-08-07 00:50:13 +0200
commitdc9b57aa09d9217647985fd2b2ece602bfd32a69 (patch)
tree07660b96ccd92dfee62fa22aae5083734c2ba453
parentb7e134e27e65c5cc4ae2cd49d41f680ffa20a593 (diff)
downloadk9copy-dc9b57aa09d9217647985fd2b2ece602bfd32a69.tar.gz
k9copy-dc9b57aa09d9217647985fd2b2ece602bfd32a69.zip
Fix clang build failure for cputest
Signed-off-by: Ray-V <[email protected]> (cherry picked from commit 02323df78a7c9ef1e1d533d95e2abf6db6dd9ac6)
-rw-r--r--k9vamps/cputest.cpp4
1 files 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));