Changeset 4938 in vbox
- Timestamp:
- Sep 21, 2007 7:24:28 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r4831 r4938 548 548 int VBOXCALL supdrvIOCtlFast(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession) 549 549 { 550 /* 551 * Disable interrupts before invoking VMMR0Entry() because it ASSUMES 552 * that interrupts are disabled. (We check the two prereqs after doing 553 * this only to allow the compiler to optimize things better.) 554 */ 555 int rc; 556 RTCCUINTREG uFlags = ASMGetFlags(); 557 ASMIntDisable(); 558 550 int rc; 551 552 /* 553 * We check the two prereqs after doing this only to allow the compiler to optimize things better. 554 */ 559 555 if (RT_LIKELY(pSession->pVM && pDevExt->pfnVMMR0EntryFast)) 560 556 { … … 578 574 rc = VERR_INTERNAL_ERROR; 579 575 580 ASMSetFlags(uFlags);581 576 return rc; 582 577 }
Note:
See TracChangeset
for help on using the changeset viewer.