]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IODeviceTreeSupport.cpp
xnu-792.25.20.tar.gz
[apple/xnu.git] / iokit / Kernel / IODeviceTreeSupport.cpp
index a238b773c547bbec7e635b5e2fb73ef4e932280f..5c3afed44212db9af46fad942b1b3812e98291bd 100644 (file)
@@ -302,7 +302,11 @@ static void FreePhysicalMemory( vm_offset_t * range )
 {
     vm_offset_t        virt;
 
+#if defined (__i386__)
+    virt = ml_boot_ptovirt( range[0] );
+#else
     virt = ml_static_ptovirt( range[0] );
+#endif
     if( virt) {
         ml_static_mfree( virt, range[1] );
     }