Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2010 15:27:58 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205210 - head/sys/i386/include
Message-ID:  <201003161527.o2GFRwFb020987@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Mar 16 15:27:58 2010
New Revision: 205210
URL: http://svn.freebsd.org/changeset/base/205210

Log:
  Use unsigned long long constants for fields in 64-bit machine check
  registers instead of unsigned long constants.
  
  MFC after:	3 days

Modified:
  head/sys/i386/include/specialreg.h

Modified: head/sys/i386/include/specialreg.h
==============================================================================
--- head/sys/i386/include/specialreg.h	Tue Mar 16 14:44:33 2010	(r205209)
+++ head/sys/i386/include/specialreg.h	Tue Mar 16 15:27:58 2010	(r205210)
@@ -426,22 +426,22 @@
 #define	MCG_STATUS_RIPV		0x00000001
 #define	MCG_STATUS_EIPV		0x00000002
 #define	MCG_STATUS_MCIP		0x00000004
-#define	MCG_CTL_ENABLE		0xffffffffffffffffUL
-#define	MCG_CTL_DISABLE		0x0000000000000000UL
+#define	MCG_CTL_ENABLE		0xffffffffffffffffULL
+#define	MCG_CTL_DISABLE		0x0000000000000000ULL
 #define	MSR_MC_CTL(x)		(MSR_MC0_CTL + (x) * 4)
 #define	MSR_MC_STATUS(x)	(MSR_MC0_STATUS + (x) * 4)
 #define	MSR_MC_ADDR(x)		(MSR_MC0_ADDR + (x) * 4)
 #define	MSR_MC_MISC(x)		(MSR_MC0_MISC + (x) * 4)
-#define	MC_STATUS_MCA_ERROR	0x000000000000ffffUL
-#define	MC_STATUS_MODEL_ERROR	0x00000000ffff0000UL
-#define	MC_STATUS_OTHER_INFO	0x01ffffff00000000UL
-#define	MC_STATUS_PCC		0x0200000000000000UL
-#define	MC_STATUS_ADDRV		0x0400000000000000UL
-#define	MC_STATUS_MISCV		0x0800000000000000UL
-#define	MC_STATUS_EN		0x1000000000000000UL
-#define	MC_STATUS_UC		0x2000000000000000UL
-#define	MC_STATUS_OVER		0x4000000000000000UL
-#define	MC_STATUS_VAL		0x8000000000000000UL
+#define	MC_STATUS_MCA_ERROR	0x000000000000ffffULL
+#define	MC_STATUS_MODEL_ERROR	0x00000000ffff0000ULL
+#define	MC_STATUS_OTHER_INFO	0x01ffffff00000000ULL
+#define	MC_STATUS_PCC		0x0200000000000000ULL
+#define	MC_STATUS_ADDRV		0x0400000000000000ULL
+#define	MC_STATUS_MISCV		0x0800000000000000ULL
+#define	MC_STATUS_EN		0x1000000000000000ULL
+#define	MC_STATUS_UC		0x2000000000000000ULL
+#define	MC_STATUS_OVER		0x4000000000000000ULL
+#define	MC_STATUS_VAL		0x8000000000000000ULL
 
 /*
  * The following four 3-byte registers control the non-cacheable regions.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003161527.o2GFRwFb020987>