diff options
Diffstat (limited to 'emulators/virtualbox-ose-legacy/files/patch-include-VBox-vmm-cpumctx.h')
-rw-r--r-- | emulators/virtualbox-ose-legacy/files/patch-include-VBox-vmm-cpumctx.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-legacy/files/patch-include-VBox-vmm-cpumctx.h b/emulators/virtualbox-ose-legacy/files/patch-include-VBox-vmm-cpumctx.h new file mode 100644 index 000000000000..e046347ef77a --- /dev/null +++ b/emulators/virtualbox-ose-legacy/files/patch-include-VBox-vmm-cpumctx.h @@ -0,0 +1,11 @@ +--- include/VBox/vmm/cpumctx.h.orig 2020-05-13 19:36:46 UTC ++++ include/VBox/vmm/cpumctx.h +@@ -88,7 +88,7 @@ AssertCompileSize(CPUMSELREG, 24); + # 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 \ |