diff mbox

x86: Make MCE defines 32-bit-safe

Message ID 4A1BE783.2080107@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka May 26, 2009, 12:58 p.m. UTC
These defines are used by KVM now also on 32-bit hosts.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 arch/x86/include/asm/mce.h |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity May 26, 2009, 1:04 p.m. UTC | #1
Jan Kiszka wrote:
> These defines are used by KVM now also on 32-bit hosts.
>
>   

Applied, thanks.
diff mbox

Patch

diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index f6bb3ff..3b532bb 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -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 {