]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IODeviceMemory.cpp
xnu-1699.22.81.tar.gz
[apple/xnu.git] / iokit / Kernel / IODeviceMemory.cpp
index d379e1755be058520eebe4046dc96f4c81181b8b..f7ed8020c6d704482c5296746d70c53bf4f5eb0b 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <IOKit/IODeviceMemory.h>
+#include <IOKit/IOSubMemoryDescriptor.h>
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
@@ -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 ));
 }