Skip to contentSkip to conversation

x86: Make MCE defines 32-bit-safe

PATCH Applied Jan Kiszka 2 participants 2 messages May 26, 2009

Subsystems (2)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86: Make MCE defines 32-bit-safe

These defines are used by KVM now also on 32-bit hosts.

---

 arch/x86/include/asm/mce.h |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
arch/x86/include/asm/mce.h +15 -15
index f6bb3ff..3b532bb 100644
@@ -8,21 +8,21 @@
  * Machine Check support for x86
  */
 
-#define MCG_CTL_P	 (1UL<<8)   /* MCG_CAP register available */
-#define MCG_EXT_P	 (1ULL<<9)   /* Extended registers available */
-#define MCG_CMCI_P	 (1ULL<<10)  /* CMCI supported */
-
-#define MCG_STATUS_RIPV  (1UL<<0)   /* restart ip valid */
-#define MCG_STATUS_EIPV  (1UL<<1)   /* ip points to correct instruction */
-#define MCG_STATUS_MCIP  (1UL<<2)   /* machine check in progress */
-
-#define MCI_STATUS_VAL   (1UL<<63)  /* valid error */
-#define MCI_STATUS_OVER  (1UL<<62)  /* previous errors lost */
-#define MCI_STATUS_UC    (1UL<<61)  /* uncorrected error */
-#define MCI_STATUS_EN    (1UL<<60)  /* error enabled */
-#define MCI_STATUS_MISCV (1UL<<59)  /* misc error reg. valid */
-#define MCI_STATUS_ADDRV (1UL<<58)  /* addr reg. valid */
-#define MCI_STATUS_PCC   (1UL<<57)  /* processor context corrupt */
+#define MCG_CTL_P        (1ULL<<8)  /* MCG_CAP register available */
+#define MCG_EXT_P        (1ULL<<9)  /* Extended registers available */
+#define MCG_CMCI_P       (1ULL<<10) /* CMCI supported */
+
+#define MCG_STATUS_RIPV  (1ULL<<0)  /* restart ip valid */
+#define MCG_STATUS_EIPV  (1ULL<<1)  /* ip points to correct instruction */
+#define MCG_STATUS_MCIP  (1ULL<<2)  /* machine check in progress */
+
+#define MCI_STATUS_VAL   (1ULL<<63) /* valid error */
+#define MCI_STATUS_OVER  (1ULL<<62) /* previous errors lost */
+#define MCI_STATUS_UC    (1ULL<<61) /* uncorrected error */
+#define MCI_STATUS_EN    (1ULL<<60) /* error enabled */
+#define MCI_STATUS_MISCV (1ULl<<59) /* misc error reg. valid */
+#define MCI_STATUS_ADDRV (1ULL<<58) /* addr reg. valid */
+#define MCI_STATUS_PCC   (1ULL<<57) /* processor context corrupt */
 
 /* Fields are zero when not available */
 struct mce {
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

These defines are used by KVM now also on 32-bit hosts.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function