Changeset 2653 in vbox for trunk/src/VBox/HostDrivers/Support/win32/SUPDrv-win32.cpp
- Timestamp:
- May 16, 2007 12:32:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win32/SUPDrv-win32.cpp
r2515 r2653 41 41 /** NT Device name. */ 42 42 #define DEVICE_NAME_NT L"\\Device\\VBoxDrv" 43 /** Win 32Symlink name. */43 /** Win Symlink name. */ 44 44 #define DEVICE_NAME_DOS L"\\DosDevices\\VBoxDrv" 45 /** The Pool tag (VBox). */ 46 #define SUPDRV_NT_POOL_TAG 'xoBV' 45 47 46 48 … … 337 339 char *pBuf = (char *)pIrp->AssociatedIrp.SystemBuffer; 338 340 339 /* 340 * Do the job. 341 /* 342 * Do the job. 341 343 */ 342 344 rc = supdrvIOCtl(pStack->Parameters.DeviceIoControl.IoControlCode, pDevExt, pSession, … … 356 358 } 357 359 else 358 dprintf(("VBoxSupDrvDeviceControlSlow: not buffered request (%#x) - not supported\n", 360 dprintf(("VBoxSupDrvDeviceControlSlow: not buffered request (%#x) - not supported\n", 359 361 pStack->Parameters.DeviceIoControl.IoControlCode)); 360 362 } … … 452 454 * Allocate memory for the MDL pointer array. 453 455 */ 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); 455 457 if (!pMem->u.locked.papMdl) 456 458 { … … 693 695 */ 694 696 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); 696 698 if (!pMem->pvR0) 697 699 return SUPDRV_ERR_NO_MEMORY; … … 953 955 ASMIntDisable(); 954 956 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. 958 960 * If someone knows a better way to get this done, please let bird know. 959 961 */ … … 963 965 for (unsigned i = 0; i < RT_ELEMENTS(pDevExt->aGipCpuDpcs); i++) 964 966 { 965 if ( i != iSelf 967 if ( i != iSelf 966 968 && (Mask & RT_BIT_64(i))) 967 969 KeInsertQueueDpc(&pDevExt->aGipCpuDpcs[i], 0, 0); … … 1085 1087 #if 0 //def __AMD64__ 1086 1088 cb = RT_ALIGN_Z(cb, PAGE_SIZE); 1087 void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, 'vbox');1089 void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, SUPDRV_NT_POOL_TAG); 1088 1090 if (pv) 1089 1091 { … … 1128 1130 return NULL; 1129 1131 #else 1130 void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, 'vbox');1132 void *pv = ExAllocatePoolWithTag(NonPagedPool, cb, SUPDRV_NT_POOL_TAG); 1131 1133 dprintf2(("supdrvOSExecAlloc(%d): returns %p\n", cb, pv)); 1132 1134 return pv; … … 1148 1150 cCpus++; 1149 1151 if (cCpus == 0) /* paranoia */ 1150 cCpus = 1; 1152 cCpus = 1; 1151 1153 return cCpus; 1152 1154 }
Note:
See TracChangeset
for help on using the changeset viewer.