X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..d1ecb069dfe24481e4a83f44cb5217a2b06746d7:/iokit/Kernel/IODeviceMemory.cpp diff --git a/iokit/Kernel/IODeviceMemory.cpp b/iokit/Kernel/IODeviceMemory.cpp index d379e1755..f7ed8020c 100644 --- a/iokit/Kernel/IODeviceMemory.cpp +++ b/iokit/Kernel/IODeviceMemory.cpp @@ -27,6 +27,7 @@ */ #include +#include /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -34,8 +35,8 @@ IODeviceMemory * IODeviceMemory::withRange( IOPhysicalAddress start, IOPhysicalLength length ) { - return( (IODeviceMemory *) IOMemoryDescriptor::withPhysicalAddress( - start, length, kIODirectionNone )); + return( (IODeviceMemory *) IOMemoryDescriptor::withAddressRange( + start, length, kIODirectionNone | kIOMemoryMapperNone, NULL )); } @@ -44,7 +45,7 @@ IODeviceMemory * IODeviceMemory::withSubRange( IOPhysicalAddress offset, IOPhysicalLength length ) { - return( (IODeviceMemory *) IOMemoryDescriptor::withSubRange( + return( (IODeviceMemory *) IOSubMemoryDescriptor::withSubRange( of, offset, length, kIODirectionNone )); }