X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..7e41aa883dd258f888d0470250eead40a53ef1f5:/iokit/Kernel/IOSubMemoryDescriptor.cpp diff --git a/iokit/Kernel/IOSubMemoryDescriptor.cpp b/iokit/Kernel/IOSubMemoryDescriptor.cpp index c82a927ee..5b377141a 100644 --- a/iokit/Kernel/IOSubMemoryDescriptor.cpp +++ b/iokit/Kernel/IOSubMemoryDescriptor.cpp @@ -93,6 +93,8 @@ bool IOSubMemoryDescriptor::initSubRange( IOMemoryDescriptor * parent, _start = offset; _length = length; _flags = direction; + _flags |= kIOMemoryThreadSafe; + #ifndef __LP64__ _direction = (IODirection) (_flags & kIOMemoryDirectionMask); #endif /* !__LP64__ */ @@ -205,3 +207,9 @@ IOSubMemoryDescriptor::getPreparationID( void ) return (super::getPreparationID()); } +IOReturn +IOSubMemoryDescriptor::getPageCounts(IOByteCount * residentPageCount, + IOByteCount * dirtyPageCount) +{ + return (_parent->getPageCounts(residentPageCount, dirtyPageCount)); +}