VirtualBox

Ignore:
Timestamp:
Mar 5, 2018 10:59:17 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121103
Message:

SUPDrv,VMMR0: Prepped for extending the fast I/O control interface a bit for NEM; SUPDRV version increment. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r69500 r71198  
    633633     */
    634634    int rc;
    635     if (   (    iCmd == SUP_IOCTL_FAST_DO_RAW_RUN
    636             ||  iCmd == SUP_IOCTL_FAST_DO_HM_RUN
    637             ||  iCmd == SUP_IOCTL_FAST_DO_NOP)
     635    AssertCompile((SUP_IOCTL_FAST_DO_FIRST & 0xff) == (SUP_IOCTL_FLAG | 64));
     636    if (   (uintptr_t)(iCmd - SUP_IOCTL_FAST_DO_FIRST) < (uintptr_t)32
    638637        && fUnrestricted)
    639         rc = supdrvIOCtlFast(iCmd, *(uint32_t *)pData, &g_DevExt, pSession);
     638        rc = supdrvIOCtlFast(iCmd - SUP_IOCTL_FAST_DO_FIRST, *(uint32_t *)pData, &g_DevExt, pSession);
    640639    else
    641640        rc = VBoxDrvDarwinIOCtlSlow(pSession, iCmd, pData, pProcess);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette