pkgsrc-wip/virtualbox-ose/patches/patch-include-VBox-vmm-cpumctx.h
Makoto Fujiwara f1d2fed01f Import virtualbox-ose as virtualbox-ose-4.3.30
- This wip version is purely experimental, it is on the way, not completed
    at all, or just started to compile by wip/kBuild-svn
    kBuild-0.1.5nb20150905 Build framework based on GNU make

 - This is ported from FreeBSD/ports (4.3.30)
    See http://svnweb.freebsd.org/ports/head/emulators/virtualbox-ose/
 - Thus there should be so many things to adjust from FreeBSD to pkgsrc

VirtualBox is a family of powerful x86 virtualization products for
enterprise as well as home use. Not only is VirtualBox an extremely
feature rich, high performance product for enterprise customers, it
is also the only professional solution that is freely available as
Open Source Software under the terms of the GNU General Public License.

WWW: http://www.virtualbox.org/
2015-09-22 19:37:32 +09:00

13 lines
638 B
C

$NetBSD$
--- include/VBox/vmm/cpumctx.h.orig 2015-03-12 18:53:45.762704000 -0400
+++ include/VBox/vmm/cpumctx.h 2015-03-12 18:56:23.765105000 -0400
@@ -84,7 +84,7 @@
# define CPUMSELREG_ARE_HIDDEN_PARTS_VALID(a_pVCpu, a_pSelReg) \
( ((a_pSelReg)->fFlags & CPUMSELREG_FLAGS_VALID) \
&& ( (a_pSelReg)->ValidSel == (a_pSelReg)->Sel \
- || ( (a_pVCpu) /*!= NULL*/ \
+ || ( ((a_pVCpu) != NULL) \
&& (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_OFF_RPL) \
&& ((a_pSelReg)->Sel & X86_SEL_RPL) == 1 \
&& ((a_pSelReg)->ValidSel & X86_SEL_RPL) == 0 \