summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/cpu.h')
-rw-r--r--arch/x86/machine/cpu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h
index 033c17dc..01d1d39f 100644
--- a/arch/x86/machine/cpu.h
+++ b/arch/x86/machine/cpu.h
@@ -85,9 +85,14 @@
#define CPU_L1_SIZE 64
/*
+ * CPU word size, 4 or 8 bytes.
+ */
+#define CPU_WORD_SIZE (LONG_BIT / 8)
+
+/*
* Data alignment, normally the word size.
*/
-#define CPU_DATA_ALIGN (LONG_BIT / 8)
+#define CPU_DATA_ALIGN CPU_WORD_SIZE
/*
* Function alignment.