Date: Fri, 20 May 2011 02:08:05 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r222111 - projects/bhyve/sys/amd64/vmm/intel Message-ID: <201105200208.p4K2852N062376@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105200208.p4K2852N062376>