summaryrefslogtreecommitdiff
path: root/i386/i386/cpu_number.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/cpu_number.h')
-rw-r--r--i386/i386/cpu_number.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/i386/i386/cpu_number.h b/i386/i386/cpu_number.h
index 7808e49c..f32a44b8 100644
--- a/i386/i386/cpu_number.h
+++ b/i386/i386/cpu_number.h
@@ -33,7 +33,12 @@
#if NCPUS > 1
/* More-specific code must define cpu_number() and CPU_NUMBER. */
+#ifdef __i386__
#define CX(addr, reg) addr(,reg,4)
+#endif
+#ifdef __x86_64__
+#define CX(addr, reg) addr(,reg,8)
+#endif
#else /* NCPUS == 1 */