Changeset 82590 in vbox for trunk/src/VBox/HostDrivers/Support/linux
- Timestamp:
- Dec 16, 2019 5:48:40 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135475
- Location:
- trunk/src/VBox/HostDrivers/Support/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r77403 r82590 154 154 VBOX_WITH_HARDENING \ 155 155 SUPDRV_WITH_RELEASE_LOGGER \ 156 VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV \ 156 157 VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV \ 158 IPRT_WITHOUT_EFLAGS_AC_PRESERVING \ 157 159 IPRT_WITH_EFLAGS_AC_PRESERVING \ 158 160 VBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk! -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r79444 r82590 558 558 PSUPDRVSESSION pSession = (PSUPDRVSESSION)pFilp->private_data; 559 559 int rc; 560 #if defined(VBOX_STRICT) || defined(VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV) 560 #ifndef VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV 561 # if defined(VBOX_STRICT) || defined(VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV) 561 562 RTCCUINTREG fSavedEfl; 562 563 … … 577 578 stac(); 578 579 # endif 580 #endif 579 581 580 582 /* … … 599 601 #endif /* !HAVE_UNLOCKED_IOCTL */ 600 602 601 #if defined(VBOX_STRICT) || defined(VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV) 603 #ifndef VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV 604 # if defined(VBOX_STRICT) || defined(VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV) 602 605 /* 603 606 * Before we restore AC and the rest of EFLAGS, check if the IOCtl handler code … … 612 615 } 613 616 ASMSetFlags(fSavedEfl); 614 # else617 # else 615 618 clac(); 619 # endif 616 620 #endif 617 621 return rc; … … 1388 1392 1389 1393 1394 SUPR0DECL(int) SUPR0HCPhysToVirt(RTHCPHYS HCPhys, void **ppv) 1395 { 1396 AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INVALID_POINTER); 1397 AssertReturn(HCPhys != NIL_RTHCPHYS, VERR_INVALID_POINTER); 1398 /* Would've like to use valid_phys_addr_range for this test, but it isn't exported. */ 1399 AssertReturn((HCPhys | PAGE_OFFSET_MASK) < __pa(high_memory), VERR_INVALID_POINTER); 1400 *ppv = phys_to_virt(HCPhys); 1401 return VINF_SUCCESS; 1402 } 1403 1404 1390 1405 RTDECL(int) SUPR0Printf(const char *pszFormat, ...) 1391 1406 {
Note:
See TracChangeset
for help on using the changeset viewer.