Changeset 59747 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Feb 19, 2016 11:18:18 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105617
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/alloc-ef-r0drv.cpp
r58278 r59747 672 672 */ 673 673 # ifdef RTR0MEM_EF_IN_FRONT 674 void *pvWrong = ASMMem IsAll8((char *)pv + pBlock->cbUnaligned,675 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbUnaligned,676 RTR0MEM_EF_NOMAN_FILLER);674 void *pvWrong = ASMMemFirstMismatchingU8((char *)pv + pBlock->cbUnaligned, 675 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbUnaligned, 676 RTR0MEM_EF_NOMAN_FILLER); 677 677 # else 678 678 /* Alignment must match allocation alignment in rtMemAlloc(). */ 679 void *pvWrong = ASMMem IsAll8((char *)pv + pBlock->cbUnaligned,680 pBlock->cbAligned - pBlock->cbUnaligned,681 RTR0MEM_EF_NOMAN_FILLER);679 void *pvWrong = ASMMemFirstMismatchingU8((char *)pv + pBlock->cbUnaligned, 680 pBlock->cbAligned - pBlock->cbUnaligned, 681 RTR0MEM_EF_NOMAN_FILLER); 682 682 if (pvWrong) 683 683 RTAssertDoPanic(); 684 pvWrong = ASMMem IsAll8((void *)((uintptr_t)pv & ~(uintptr_t)PAGE_OFFSET_MASK),685 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbAligned,686 RTR0MEM_EF_NOMAN_FILLER);684 pvWrong = ASMMemFirstMismatchingU8((void *)((uintptr_t)pv & ~(uintptr_t)PAGE_OFFSET_MASK), 685 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbAligned, 686 RTR0MEM_EF_NOMAN_FILLER); 687 687 # endif 688 688 if (pvWrong)
Note:
See TracChangeset
for help on using the changeset viewer.