VirtualBox

Changeset 2653 in vbox


Ignore:
Timestamp:
May 16, 2007 12:32:24 AM (18 years ago)
Author:
vboxsync
Message:

tag.

File:
1 edited

Legend:

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

    r2515 r2653  
    4141/** NT Device name. */
    4242#define DEVICE_NAME_NT   L"\\Device\\VBoxDrv"
    43 /** Win32 Symlink name. */
     43/** Win Symlink name. */
    4444#define DEVICE_NAME_DOS  L"\\DosDevices\\VBoxDrv"
     45/** The Pool tag (VBox). */
     46#define SUPDRV_NT_POOL_TAG  'xoBV'
    4547
    4648
     
    337339            char *pBuf = (char *)pIrp->AssociatedIrp.SystemBuffer;
    338340
    339             /* 
    340              * Do the job. 
     341            /*
     342             * Do the job.
    341343             */
    342344            rc = supdrvIOCtl(pStack->Parameters.DeviceIoControl.IoControlCode, pDevExt, pSession,
     
    356358        }
    357359        else
    358             dprintf(("VBoxSupDrvDeviceControlSlow: not buffered request (%#x) - not supported\n", 
     360            dprintf(("VBoxSupDrvDeviceControlSlow: not buffered request (%#x) - not supported\n",
    359361                     pStack->Parameters.DeviceIoControl.IoControlCode));
    360362    }
     
    452454     * Allocate memory for the MDL pointer array.
    453455     */
    454     pMem->u.locked.papMdl = (PMDL *)ExAllocatePoolWithTag(NonPagedPool, sizeof(*pMem->u.locked.papMdl) * cMdls, 'vbox');
     456    pMem->u.locked.papMdl = (PMDL *)ExAllocatePoolWithTag(NonPagedPool, sizeof(*pMem->u.locked.papMdl) * cMdls, SUPDRV_NT_POOL_TAG);
    455457    if (!pMem->u.locked.papMdl)
    456458    {
     
    693695     */
    694696    unsigned cbAligned = RT_ALIGN(RT_MAX(pMem->cb, PAGE_SIZE * 2), PAGE_SIZE);
    695     pMem->pvR0 = ExAllocatePoolWithTag(NonPagedPool, cbAligned, 'vbox');
     697    pMem->pvR0 = ExAllocatePoolWithTag(NonPagedPool, cbAligned, SUPDRV_NT_POOL_TAG);
    696698    if (!pMem->pvR0)
    697699        return SUPDRV_ERR_NO_MEMORY;
     
    953955            ASMIntDisable();
    954956
    955             /* 
    956              * We cannot do other than assume a 1:1 relation ship between the 
    957              * affinity mask and the process despite the warnings in the docs. 
     957            /*
     958             * We cannot do other than assume a 1:1 relation ship between the
     959             * affinity mask and the process despite the warnings in the docs.
    958960             * If someone knows a better way to get this done, please let bird know.
    959961             */
     
    963965            for (unsigned i = 0; i < RT_ELEMENTS(pDevExt->aGipCpuDpcs); i++)
    964966            {
    965                 if (    i != iSelf 
     967                if (    i != iSelf
    966968                    &&  (Mask & RT_BIT_64(i)))
    967969                    KeInsertQueueDpc(&pDevExt->aGipCpuDpcs[i], 0, 0);
     
    10851087#if 0 //def __AMD64__
    10861088    cb = RT_ALIGN_Z(cb, PAGE_SIZE);
    1087     void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, 'vbox');
     1089    void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, SUPDRV_NT_POOL_TAG);
    10881090    if (pv)
    10891091    {
     
    11281130    return NULL;
    11291131#else
    1130     void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, 'vbox');
     1132    void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, SUPDRV_NT_POOL_TAG);
    11311133    dprintf2(("supdrvOSExecAlloc(%d): returns %p\n", cb, pv));
    11321134    return pv;
     
    11481150            cCpus++;
    11491151    if (cCpus == 0) /* paranoia */
    1150         cCpus = 1; 
     1152        cCpus = 1;
    11511153    return cCpus;
    11521154}
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