Changeset 6478 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Jan 24, 2008 12:31:11 PM (17 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/alloc-r0drv-darwin.cpp
r5999 r6478 41 41 PRTMEMHDR rtMemAlloc(size_t cb, uint32_t fFlags) 42 42 { 43 Assert(cb != sizeof(void *)); /* 99% of pointer sized allocations are wrong. */44 43 PRTMEMHDR pHdr = (PRTMEMHDR)IOMalloc(cb + sizeof(*pHdr)); 45 44 if (pHdr) -
trunk/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c
r3680 r6478 53 53 { 54 54 PRTMEMHDR pHdr; 55 Assert(cb != sizeof(void *)); /* 99% of pointer sized allocations are wrong. */56 55 57 56 /** @todo Just like OS/2, FreeBSD doesn't need this header. */ -
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r5999 r6478 114 114 */ 115 115 PRTMEMHDR pHdr; 116 Assert(cb != sizeof(void *)); /* 99% of pointer sized allocations are wrong. */117 116 if (fFlags & RTMEMHDR_FLAG_EXEC) 118 117 { -
trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
r5999 r6478 41 41 PRTMEMHDR rtMemAlloc(size_t cb, uint32_t fFlags) 42 42 { 43 Assert(cb != sizeof(void *)); /* 99% of pointer sized allocations are wrong. */44 43 PRTMEMHDR pHdr = (PRTMEMHDR)ExAllocatePoolWithTag(NonPagedPool, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 45 44 if (pHdr) -
trunk/src/VBox/Runtime/r0drv/os2/alloc-r0drv-os2.cpp
r2981 r6478 43 43 PRTMEMHDR rtMemAlloc(size_t cb, uint32_t fFlags) 44 44 { 45 Assert(cb != sizeof(void *)); /* 99% of pointer sized allocations are wrong. */46 47 45 void *pv = NULL; 48 46 APIRET rc = KernVMAlloc(cb + sizeof(RTMEMHDR), VMDHA_FIXED, &pv, (void **)-1, NULL); -
trunk/src/VBox/Runtime/r0drv/solaris/alloc-r0drv-solaris.c
r5999 r6478 43 43 PRTMEMHDR rtMemAlloc(size_t cb, uint32_t fFlags) 44 44 { 45 Assert(cb != sizeof(void *));46 45 PRTMEMHDR pHdr; 47 46 #ifdef RT_ARCH_AMD64
Note:
See TracChangeset
for help on using the changeset viewer.