]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/commpage/commpage.c
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / i386 / commpage / commpage.c
index 30ea3e10ff57ad206f3751ff154eb4c36d46295c..35ee69cdff499b992468149a2782e69c721bea73 100644 (file)
@@ -134,7 +134,7 @@ commpage_allocate(
         *
         * JMM - What we really need is a way to create it like this in the first place.
         */
-       if (!(kr = vm_map_lookup_entry( kernel_map, vm_map_trunc_page(kernel_addr), &entry) || entry->is_sub_map))
+       if (!(kr = vm_map_lookup_entry( kernel_map, vm_map_trunc_page(kernel_addr, VM_MAP_PAGE_MASK(kernel_map)), &entry) || entry->is_sub_map))
                panic("cannot find commpage entry %d", kr);
        entry->object.vm_object->copy_strategy = MEMORY_OBJECT_COPY_NONE;