svn commit: r222111 - projects/bhyve/sys/amd64/vmm/intel
Neel Natu
neel at FreeBSD.org
Fri May 20 02:08:05 UTC 2011
Author: neel
Date: Fri May 20 02:08:05 2011
New Revision: 222111
URL: http://svn.freebsd.org/changeset/base/222111
Log:
Avoid unnecessary sign extension when promoted to a 64-bit integer.
This was benign because the interruption info field is a 32-bit quantity and
the hardware guarantees that the upper 32-bits are all zeros. But it did make
reading the objdump output very confusing.
Modified:
projects/bhyve/sys/amd64/vmm/intel/vmcs.h
Modified: projects/bhyve/sys/amd64/vmm/intel/vmcs.h
==============================================================================
--- projects/bhyve/sys/amd64/vmm/intel/vmcs.h Fri May 20 01:04:33 2011 (r222110)
+++ projects/bhyve/sys/amd64/vmm/intel/vmcs.h Fri May 20 02:08:05 2011 (r222111)
@@ -304,7 +304,7 @@ uint64_t vmcs_read(uint32_t encoding);
/*
* VMCS interrupt information fields
*/
-#define VMCS_INTERRUPTION_INFO_VALID (1 << 31)
+#define VMCS_INTERRUPTION_INFO_VALID (1U << 31)
#define VMCS_INTERRUPTION_INFO_HW_INTR (0 << 8)
#define VMCS_INTERRUPTION_INFO_NMI (2 << 8)
More information about the svn-src-projects
mailing list